QAudioRoleControl Class▲
-
Header: QAudioRoleControl
-
Since: Qt 5.6
-
qmake: QT += multimedia
-
Inherits: QMediaControl
-
Inherited By:
-
Group: QAudioRoleControl is part of multimedia_control
Detailed Description▲
If a QMediaService supports audio roles it will implement QAudioRoleControl.
The functionality provided by this control is exposed to application code through the QMediaPlayer class.
The interface name of QAudioRoleControl is org.qt-project.qt.audiorolecontrol/5.6 as defined in QAudioRoleControl_iid.
See Also▲
See also QMediaService::requestControl(), QMediaPlayer
Member Function Documentation▲
[explicit protected] QAudioRoleControl::QAudioRoleControl(QObject *parent = nullptr)▲
Construct a QAudioRoleControl with the given parent.
[virtual] QAudioRoleControl::~QAudioRoleControl()▲
Destroys the audio role control.
[pure virtual] QAudio::Role QAudioRoleControl::audioRole() const▲
void QAudioRoleControl::audioRoleChanged(QAudio::Role role)▲
Signal emitted when the audio role has changed.
[pure virtual] void QAudioRoleControl::setAudioRole(QAudio::Role role)▲
[pure virtual] QList<QAudio::Role> QAudioRoleControl::supportedAudioRoles() const▲
Returns a list of audio roles that the media service supports.
Macro Documentation▲
QAudioRoleControl_iid▲
org.qt-project.qt.audiorolecontrol/5.6
Defines the interface name of the QAudioRoleControl class.