Added volume property to QMediaRecorder
Change-Id: I19f727107651c9f640ca1c010a3764f05aef8820 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
0d0e89b1e8
commit
36ff2fe85e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user