summaryrefslogtreecommitdiffstats
path: root/src/multimedia/audio/qaudiooutput.cpp
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <br@blankpage.ch>2010-01-11 14:33:00 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-01-11 15:18:12 (GMT)
commit02c6e391176f448ea2a45415140f432851aa376a (patch)
tree707424d998c546bd835676c3f2582091bc598f3e /src/multimedia/audio/qaudiooutput.cpp
parentd1fe5a2c0b9d21b32e9d65b59f120776a79d022c (diff)
downloadQt-02c6e391176f448ea2a45415140f432851aa376a.zip
Qt-02c6e391176f448ea2a45415140f432851aa376a.tar.gz
Qt-02c6e391176f448ea2a45415140f432851aa376a.tar.bz2
Fix code example
The example given for QAudioOutput doesn't actually compile: QAudioOutput::start takes a pointer to a QIODevice, but it's passed a QFile (not the pointer). Merge-request: 418 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src/multimedia/audio/qaudiooutput.cpp')
-rw-r--r--src/multimedia/audio/qaudiooutput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/audio/qaudiooutput.cpp b/src/multimedia/audio/qaudiooutput.cpp
index 613056c..b61aa4f 100644
--- a/src/multimedia/audio/qaudiooutput.cpp
+++ b/src/multimedia/audio/qaudiooutput.cpp
@@ -98,7 +98,7 @@ QT_BEGIN_NAMESPACE
audio = new QAudioOutput(format, this);
connect(audio,SIGNAL(stateChanged(QAudio::State)),SLOT(finishedPlaying(QAudio::State)));
- audio->start(inputFile);
+ audio->start(&inputFile);
\endcode