summaryrefslogtreecommitdiffstats
path: root/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp
diff options
context:
space:
mode:
authorDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2012-05-21 12:09:50 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-19 09:08:53 +0200
commit36ff2fe85e418e7cf82f6c6a67d49a2f16998853 (patch)
tree5d64120ddcffa9415149e1ebc3ebc7bbf86ac9bb /src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp
parent0d0e89b1e89589812a91ee8d202de2576d6ae89f (diff)
Added volume property to QMediaRecorder
Change-Id: I19f727107651c9f640ca1c010a3764f05aef8820 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp')
-rw-r--r--src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp b/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp
index 3ff148e0..cfcdb104 100644
--- a/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp
+++ b/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp
@@ -56,6 +56,7 @@ QGstreamerRecorderControl::QGstreamerRecorderControl(QGstreamerCaptureSession *s
connect(m_session, SIGNAL(error(int,QString)), SLOT(handleSessionError(int,QString)));
connect(m_session, SIGNAL(durationChanged(qint64)), SIGNAL(durationChanged(qint64)));
connect(m_session, SIGNAL(mutedChanged(bool)), SIGNAL(mutedChanged(bool)));
+ connect(m_session, SIGNAL(volumeChanged(qreal)), SIGNAL(volumeChanged(qreal)));
m_hasPreviewState = m_session->captureMode() != QGstreamerCaptureSession::Audio;
}
@@ -309,11 +310,21 @@ bool QGstreamerRecorderControl::isMuted() const
return m_session->isMuted();
}
+qreal QGstreamerRecorderControl::volume() const
+{
+ return m_session->volume();
+}
+
void QGstreamerRecorderControl::setMuted(bool muted)
{
m_session->setMuted(muted);
}
+void QGstreamerRecorderControl::setVolume(qreal volume)
+{
+ m_session->setVolume(volume);
+}
+
QDir QGstreamerRecorderControl::defaultDir() const
{
QStringList dirCandidates;