|qmake:||QT += multimedia|
|virtual QAudio::Role||audioRole() const = 0|
|virtual void||setAudioRole(QAudio::Role role) = 0|
|virtual QList<QAudio::Role>||supportedAudioRoles() const = 0|
- 32 public functions inherited from QObject
- 2 signals inherited from QObject
|QAudioRoleControl(QObject *parent = Q_NULLPTR)|
- 9 protected functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 11 static public members inherited from QObject
The QAudioRoleControl class provides control over the audio role of a media object.
The functionality provided by this control is exposed to application code through the QMediaPlayer class.
Member Function Documentation
[protected] QAudioRoleControl::QAudioRoleControl(QObject *parent = Q_NULLPTR)
Construct a QAudioRoleControl with the given parent.
Destroys the audio role control.
[pure virtual] QAudio::Role QAudioRoleControl::audioRole() const
Returns the audio role of the media played by the media service.
See also setAudioRole().
[signal] void QAudioRoleControl::audioRoleChanged(QAudio::Role role)
Signal emitted when the audio role has changed.
[pure virtual] void QAudioRoleControl::setAudioRole(QAudio::Role role)
Sets the audio role of the media played by the media service.
See also audioRole().
[pure virtual] QList<QAudio::Role> QAudioRoleControl::supportedAudioRoles() const
Returns a list of audio roles that the media service supports.
Defines the interface name of the QAudioRoleControl class.
© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.