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:
hawcroft
2011-09-28 13:20:26 +10:00
committed by Qt by Nokia
parent 788175b4f4
commit a645b75e35
6 changed files with 93 additions and 1 deletions

View File

@@ -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