Expose the audio category information for streams.

QAudioOutput and QSoundEffect now have a category property so that
system volume mixing or processing can be applied.

Initially just pulseaudio supports this but Windows Vista etc should also
work.

Change-Id: I6855b08367e5a055ac7dfcffd644c98bfd7c5a4e
Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
Michael Goddard
2012-04-13 13:51:09 +10:00
committed by Qt by Nokia
parent 8441d2e32e
commit 5f7b64346d
11 changed files with 198 additions and 4 deletions

View File

@@ -94,6 +94,9 @@ public:
void release();
QString category() const;
void setCategory(const QString &category);
public Q_SLOTS:
void play();
void stop();
@@ -105,6 +108,7 @@ Q_SIGNALS:
void loadedChanged();
void playingChanged();
void statusChanged();
void categoryChanged();
private Q_SLOTS:
void decoderError();
@@ -157,6 +161,8 @@ private:
int m_runningCount;
QUrl m_source;
QByteArray m_name;
QString m_category;
bool m_reloadCategory;
QSample *m_sample;
int m_position;