From 5f7b64346db43a6aa3ea2bbc15c63d4864f4d005 Mon Sep 17 00:00:00 2001 From: Michael Goddard Date: Fri, 13 Apr 2012 13:51:09 +1000 Subject: 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 --- src/multimedia/audio/qsoundeffect_pulse_p.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/multimedia/audio/qsoundeffect_pulse_p.h') 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; -- cgit v1.2.1