Add QAudioOutput volume API and pulseaudio backend implementation.
Change-Id: I70784e8d17522a23f6467713d58384b30557694b Reviewed-on: http://codereview.qt-project.org/5663 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
This commit is contained in:
@@ -95,6 +95,9 @@ public:
|
||||
void setFormat(const QAudioFormat &format);
|
||||
QAudioFormat format() const;
|
||||
|
||||
void setVolume(qreal volume);
|
||||
qreal volume() const;
|
||||
|
||||
public:
|
||||
void streamUnderflowCallback();
|
||||
|
||||
@@ -129,6 +132,10 @@ private:
|
||||
QTime m_timeStamp;
|
||||
qint64 m_elapsedTimeOffset;
|
||||
bool m_resuming;
|
||||
|
||||
qreal m_volume;
|
||||
pa_cvolume m_chVolume;
|
||||
pa_sample_spec m_spec;
|
||||
};
|
||||
|
||||
class OutputPrivate : public QIODevice
|
||||
|
||||
Reference in New Issue
Block a user