summaryrefslogtreecommitdiffstats
path: root/src/multimedia/audio/qaudioinput.cpp
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@trolltech.com>2009-09-15 11:01:45 (GMT)
committerGeir Vattekar <geir.vattekar@trolltech.com>2009-09-15 11:03:34 (GMT)
commitcd5f0f868bc830c6b350e8263fd53597f52e1146 (patch)
tree1306128003e1ca96546515c96ea6802ff4c56fe8 /src/multimedia/audio/qaudioinput.cpp
parent2b21c3f4022c64ee6f0178b1866f22639c377ae6 (diff)
downloadQt-cd5f0f868bc830c6b350e8263fd53597f52e1146.zip
Qt-cd5f0f868bc830c6b350e8263fd53597f52e1146.tar.gz
Qt-cd5f0f868bc830c6b350e8263fd53597f52e1146.tar.bz2
Doc: Added some snippets to the multimedia audio docs.
Diffstat (limited to 'src/multimedia/audio/qaudioinput.cpp')
-rw-r--r--src/multimedia/audio/qaudioinput.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/multimedia/audio/qaudioinput.cpp b/src/multimedia/audio/qaudioinput.cpp
index edf6dd6..3c0d98e 100644
--- a/src/multimedia/audio/qaudioinput.cpp
+++ b/src/multimedia/audio/qaudioinput.cpp
@@ -128,7 +128,12 @@ QT_BEGIN_NAMESPACE
which states the QAudioInput has been in.
If an error should occur, you can fetch its reason with error().
- The possible error reasons are described by the QAudio::Error enum.
+ The possible error reasons are described by the QAudio::Error
+ enum. The QAudioInput will enter the \l{QAudio::}{StopState} when
+ an error is encountered. Connect to the stateChanged() signal to
+ handle the error:
+
+ \snippet doc/src/snippets/audio/main.cpp 0
\sa QAudioOutput, QAudioDeviceInfo
*/