QAudioOutputSelectorControl Class

The QAudioOutputSelectorControl class provides an audio output selector media control. 更多...

头: #include <QAudioOutputSelectorControl>
qmake: QT += multimedia
继承: QMediaControl

公共函数

virtual ~QAudioOutputSelectorControl ()
virtual QString activeOutput () const = 0
virtual QList<QString> availableOutputs () const = 0
virtual QString defaultOutput () const = 0
virtual QString outputDescription (const QString & name ) const = 0

公共槽

virtual void setActiveOutput (const QString & name ) = 0

信号

void activeOutputChanged (const QString & name )
void availableOutputsChanged ()

保护函数

QAudioOutputSelectorControl (QObject * parent = Q_NULLPTR)

QAudioOutputSelectorControl_iid

额外继承成员

详细描述

The QAudioOutputSelectorControl class provides an audio output selector media control.

The QAudioOutputSelectorControl class provides descriptions of the audio outputs available on a system and allows one to be selected as the audio output of a media service.

接口名称对于 QAudioOutputSelectorControl is org.qt-project.qt.audiooutputselectorcontrol/5.0 作为定义在 QAudioOutputSelectorControl_iid .

另请参阅 QMediaService::requestControl ().

成员函数文档编制

[protected] QAudioOutputSelectorControl:: QAudioOutputSelectorControl ( QObject * parent = Q_NULLPTR)

Constructs a new audio output selector control with the given parent .

[虚拟] QAudioOutputSelectorControl:: ~QAudioOutputSelectorControl ()

Destroys an audio output selector control.

[pure virtual] QString QAudioOutputSelectorControl:: activeOutput () const

Returns the name of the currently selected audio output.

另请参阅 setActiveOutput ().

[signal] void QAudioOutputSelectorControl:: activeOutputChanged (const QString & name )

Signals that the audio output has changed to name .

[pure virtual] QList < QString > QAudioOutputSelectorControl:: availableOutputs () const

Returns a list of the names of the available audio outputs.

[signal] void QAudioOutputSelectorControl:: availableOutputsChanged ()

Signals that list of available outputs has changed.

[pure virtual] QString QAudioOutputSelectorControl:: defaultOutput () const

Returns the name of the default audio output.

[pure virtual] QString QAudioOutputSelectorControl:: outputDescription (const QString & name ) const

Returns the description of the output name .

[pure virtual slot] void QAudioOutputSelectorControl:: setActiveOutput (const QString & name )

Set the active audio output to name .

另请参阅 activeOutput ().

宏文档编制

QAudioOutputSelectorControl_iid

org.qt-project.qt.audiooutputselectorcontrol/5.0

定义接口名为 QAudioOutputSelectorControl 类。