diff options
author | James McDonnell <jmcdonnell@blackberry.com> | 2017-03-27 14:59:06 -0400 |
---|---|---|
committer | James McDonnell <jmcdonnell@blackberry.com> | 2017-09-06 14:07:11 +0000 |
commit | fec653b6f4402e70ee6d11f8beba070ece0b3d8d (patch) | |
tree | 4c64b85f6d818400beb869c884956607c506d1d9 /src/multimedia/audio/qaudio.cpp | |
parent | a523f9e117c5d402b83c4cdbf54d99004095616d (diff) |
Add custom audio role API to QMediaPlayer
Allows use of audio roles beyond those known to Qt.
[ChangeLog][QMediaPlayer] Added customAudioRole string property to
enable use of audio roles beyond those available via the audioRole
enum property.
Change-Id: Id7ed5d7bc1af0c15910e699f25c97cfed2d48243
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/multimedia/audio/qaudio.cpp')
-rw-r--r-- | src/multimedia/audio/qaudio.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/multimedia/audio/qaudio.cpp b/src/multimedia/audio/qaudio.cpp index dea9a05a5..82613270a 100644 --- a/src/multimedia/audio/qaudio.cpp +++ b/src/multimedia/audio/qaudio.cpp @@ -115,6 +115,7 @@ Q_CONSTRUCTOR_FUNCTION(qRegisterAudioMetaTypes) \value AccessibilityRole For accessibility, such as with a screen reader \value SonificationRole Sonification, such as with user interface sounds \value GameRole Game audio + \value CustomRole The role is specified by QMediaPlayer::customAudioRole() \since 5.6 \sa QMediaPlayer::setAudioRole() @@ -347,6 +348,9 @@ QDebug operator<<(QDebug dbg, QAudio::Role role) case QAudio::VoiceCommunicationRole: dbg << "VoiceCommunicationRole"; break; + case QAudio::CustomRole: + dbg << "CustomRole"; + break; } return dbg; } |