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
@@ -159,6 +159,17 @@ QMediaRecorderControl::~QMediaRecorderControl()
|
||||
Sets the \a muted state of a media recorder.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn qreal QMediaRecorderControl::volume() const
|
||||
|
||||
Returns the linear audio gain of media recorder.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QMediaRecorderControl::setVolume(qreal gain)
|
||||
|
||||
Sets the linear audio \a gain of a media recorder.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QMediaRecorderControl::stateChanged(QMediaRecorder::State state)
|
||||
@@ -187,6 +198,12 @@ QMediaRecorderControl::~QMediaRecorderControl()
|
||||
Signals that the \a muted state of a media recorder has changed.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QMediaRecorderControl::volume(qreal gain)
|
||||
|
||||
Signals that the audio \a gain value has changed.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QMediaRecorderControl::actualLocationChanged(const QUrl &location)
|
||||
|
||||
|
||||
@@ -75,6 +75,7 @@ public:
|
||||
virtual qint64 duration() const = 0;
|
||||
|
||||
virtual bool isMuted() const = 0;
|
||||
virtual qreal volume() const = 0;
|
||||
|
||||
virtual void applySettings() = 0;
|
||||
|
||||
@@ -83,12 +84,14 @@ Q_SIGNALS:
|
||||
void statusChanged(QMediaRecorder::Status status);
|
||||
void durationChanged(qint64 position);
|
||||
void mutedChanged(bool muted);
|
||||
void volumeChanged(qreal volume);
|
||||
void actualLocationChanged(const QUrl &location);
|
||||
void error(int error, const QString &errorString);
|
||||
|
||||
public Q_SLOTS:
|
||||
virtual void setState(QMediaRecorder::State state) = 0;
|
||||
virtual void setMuted(bool muted) = 0;
|
||||
virtual void setVolume(qreal volume) = 0;
|
||||
|
||||
protected:
|
||||
QMediaRecorderControl(QObject* parent = 0);
|
||||
|
||||
Reference in New Issue
Block a user