Added volume property to QMediaRecorder

Change-Id: I19f727107651c9f640ca1c010a3764f05aef8820
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
Dmytro Poplavskiy
2012-05-21 12:09:50 +10:00
committed by Qt by Nokia
parent 0d0e89b1e8
commit 36ff2fe85e
14 changed files with 147 additions and 4 deletions

View File

@@ -230,9 +230,21 @@ bool CameraBinRecorder::isMuted() const
return m_session->isMuted();
}
qreal CameraBinRecorder::volume() const
{
return 1.0;
}
void CameraBinRecorder::setMuted(bool muted)
{
m_session->setMuted(muted);
}
void CameraBinRecorder::setVolume(qreal volume)
{
if (!qFuzzyCompare(volume, qreal(1.0)))
qWarning() << "Media service doesn't support recorder audio gain.";
}
QT_END_NAMESPACE

View File

@@ -66,6 +66,7 @@ public:
qint64 duration() const;
bool isMuted() const;
qreal volume() const;
void applySettings();
GstEncodingContainerProfile *videoProfile();
@@ -73,6 +74,7 @@ public:
public slots:
void setState(QMediaRecorder::State state);
void setMuted(bool);
void setVolume(qreal volume);
private slots:
void updateStatus();