diff options
author | Michael Goddard <michael.goddard@nokia.com> | 2012-04-13 13:51:09 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-16 10:56:34 +0200 |
commit | 5f7b64346db43a6aa3ea2bbc15c63d4864f4d005 (patch) | |
tree | 845838026bba3e5236999abcab7f0bd9b39d6ec3 /src/multimedia/audio/qsoundeffect_pulse_p.h | |
parent | 8441d2e32e3bae40640a1584d1d1d1e82980d718 (diff) |
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>
Diffstat (limited to 'src/multimedia/audio/qsoundeffect_pulse_p.h')
-rw-r--r-- | src/multimedia/audio/qsoundeffect_pulse_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/multimedia/audio/qsoundeffect_pulse_p.h b/src/multimedia/audio/qsoundeffect_pulse_p.h index 08c010493..6c7202c24 100644 --- a/src/multimedia/audio/qsoundeffect_pulse_p.h +++ b/src/multimedia/audio/qsoundeffect_pulse_p.h @@ -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; |