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

@@ -131,6 +131,7 @@ public:
qint64 duration() const;
bool isMuted() const { return m_muted; }
qreal volume() const { return m_volume; }
bool isReady() const;
@@ -148,6 +149,7 @@ signals:
void imageCaptured(int requestId, const QImage &img);
void imageSaved(int requestId, const QString &path);
void mutedChanged(bool);
void volumeChanged(qreal);
void readyChanged(bool);
void viewfinderChanged();
@@ -159,6 +161,7 @@ public slots:
void setMetaData(const QMap<QByteArray, QVariant>&);
void setMuted(bool);
void setVolume(qreal volume);
private:
enum PipelineMode { EmptyPipeline, PreviewPipeline, RecordingPipeline, PreviewAndRecordingPipeline };
@@ -210,7 +213,8 @@ private:
GstElement *m_audioPreviewQueue;
GstElement *m_audioPreview;
GstElement *m_audioVolume;
bool m_muted;
gboolean m_muted;
double m_volume;
GstElement *m_videoSrc;
GstElement *m_videoTee;