src/multimedia/audio/qaudioinput.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
child 7 3f74d0d4af4c
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtMultimedia module of the Qt Toolkit.
     7 ** This file is part of the QtMultimedia module of the Qt Toolkit.
     8 **
     8 **
   101           format = info.nearestFormat(format);
   101           format = info.nearestFormat(format);
   102       }
   102       }
   103 
   103 
   104       audio = new QAudioInput(format, this);
   104       audio = new QAudioInput(format, this);
   105       QTimer::singleShot(3000, this, SLOT(stopRecording()));
   105       QTimer::singleShot(3000, this, SLOT(stopRecording()));
   106       audio->start(outputFile);
   106       audio->start(&outputFile);
   107       // Records audio for 3000ms
   107       // Records audio for 3000ms
   108     }
   108     }
   109     \endcode
   109     \endcode
   110 
   110 
   111     This will start recording if the format specified is supported by
   111     This will start recording if the format specified is supported by