Added QAudioDecoderControl::sourceChanged signal.
authorLev Zelenskiy <lev.zelenskiy@nokia.com>
Thu, 16 Feb 2012 06:46:21 +0000 (16:46 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 17 Feb 2012 06:27:51 +0000 (07:27 +0100)
The signal is mentioned in QAudioDecoder but is missing from
QAudioDecoderControl.

Change-Id: I0cd13c53541585098edd02093858501ffb5af1fb
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
src/multimedia/audio/qaudiodecoder_p.cpp
src/multimedia/controls/qaudiodecodercontrol_p.cpp
src/multimedia/controls/qaudiodecodercontrol_p.h

index fea9337..ac04502 100644 (file)
@@ -149,6 +149,7 @@ QAudioDecoder::QAudioDecoder(QObject *parent)
             connect(d->control, SIGNAL(error(int,QString)), SLOT(_q_error(int,QString)));
 
             connect(d->control, SIGNAL(formatChanged(QAudioFormat)), SIGNAL(formatChanged(QAudioFormat)));
+            connect(d->control, SIGNAL(sourceChanged()), SIGNAL(sourceChanged()));
             connect(d->control, SIGNAL(bufferReady()), this, SIGNAL(bufferReady()));
             connect(d->control ,SIGNAL(bufferAvailableChanged(bool)), this, SIGNAL(bufferAvailableChanged(bool)));
         }
index 2044456..3569e02 100644 (file)
@@ -174,6 +174,14 @@ QAudioDecoderControl::QAudioDecoderControl(QObject *parent):
 */
 
 /*!
+    \fn QAudioDecoderControl::sourceChanged()
+
+    Signals that the current source of the decoder has changed.
+
+    \sa sourceFilename(), sourceDevice()
+*/
+
+/*!
     \fn QAudioDecoderControl::formatChanged(const QAudioFormat &format)
 
     Signals that the current audio format of the decoder has changed to \a format.
index 1130661..ed5b321 100644 (file)
@@ -83,6 +83,7 @@ public:
 Q_SIGNALS:
     void stateChanged(QAudioDecoder::State newState);
     void formatChanged(const QAudioFormat &format);
+    void sourceChanged();
 
     void error(int error, const QString &errorString);