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.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.h')
-rw-r--r-- | src/multimedia/audio/qsoundeffect.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/multimedia/audio/qsoundeffect.h b/src/multimedia/audio/qsoundeffect.h index 44d2f5ba5..f3de7ec17 100644 --- a/src/multimedia/audio/qsoundeffect.h +++ b/src/multimedia/audio/qsoundeffect.h @@ -68,6 +68,7 @@ class Q_MULTIMEDIA_EXPORT QSoundEffect : public QObject Q_PROPERTY(bool muted READ isMuted WRITE setMuted NOTIFY mutedChanged) Q_PROPERTY(bool playing READ isPlaying NOTIFY playingChanged) Q_PROPERTY(Status status READ status NOTIFY statusChanged) + Q_PROPERTY(QString category READ category WRITE setCategory NOTIFY categoryChanged) Q_ENUMS(Loop) Q_ENUMS(Status) @@ -108,6 +109,9 @@ public: bool isPlaying() const; Status status() const; + QString category() const; + void setCategory(const QString &category); + Q_SIGNALS: void sourceChanged(); void loopCountChanged(); @@ -117,6 +121,7 @@ Q_SIGNALS: void loadedChanged(); void playingChanged(); void statusChanged(); + void categoryChanged(); public Q_SLOTS: void play(); |