diff options
author | Martin Smith <martin.smith@nokia.com> | 2011-03-25 11:29:20 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2011-03-25 11:29:20 (GMT) |
commit | 353d0e3672d8c7f5c8e8f8879ffa2f3278f9727e (patch) | |
tree | 4edfcc67b139aa6591d6b3735c30fe1b6025ee3a /src | |
parent | fc90a00874ee01d84237a9b0e0fda706da258fdb (diff) | |
parent | cb9849a2bf5c48525e477852cd2cc24db6738029 (diff) | |
download | Qt-353d0e3672d8c7f5c8e8f8879ffa2f3278f9727e.zip Qt-353d0e3672d8c7f5c8e8f8879ffa2f3278f9727e.tar.gz Qt-353d0e3672d8c7f5c8e8f8879ffa2f3278f9727e.tar.bz2 |
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/qt-doc-team into 4.7
Diffstat (limited to 'src')
-rw-r--r-- | src/multimedia/audio/qaudioinput.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/multimedia/audio/qaudioinput.cpp b/src/multimedia/audio/qaudioinput.cpp index 3767b95..77ecf70 100644 --- a/src/multimedia/audio/qaudioinput.cpp +++ b/src/multimedia/audio/qaudioinput.cpp @@ -202,7 +202,13 @@ QAudioInput::~QAudioInput() /*! Uses the \a device as the QIODevice to transfer data. Passing a QIODevice allows the data to be transferred without any extra code. - All that is required is to open the QIODevice. + All that is required is to open the QIODevice. QAudioInput does not take + ownership of \a device. + + The QAudioInput will write to the device when new data is available. You can + subclass QIODevice and reimplement \l{QIODevice::}{writeData()} if you wish to + access the data. If you simply want to save data to a file, you can pass a + QFile to this function. If able to successfully get audio data from the systems audio device the state() is set to either QAudio::ActiveState or QAudio::IdleState, @@ -222,9 +228,12 @@ void QAudioInput::start(QIODevice* device) } /*! - Returns a pointer to the QIODevice being used to handle the data - transfer. This QIODevice can be used to read() audio data - directly. + + Returns a pointer to a new QIODevice that will be used to handle the data transfer. + This QIODevice can be used to \l{QIODevice::}{read()} audio data directly. + You will typically connect to the \l{QIODevice::}{readyRead()} signal, and + read from the device in the slot you connect to. QAudioInput keeps ownership + of the device. If able to access the systems audio device the state() is set to QAudio::IdleState, error() is set to QAudio::NoError |