内容表

上一话题

QAudioEncoderSettings

下一话题

QAudioFormat

QAudioEncoderSettingsControl

QAudioEncoderSettingsControl class provides access to the settings of a media service that performs audio encoding. 更多

Inheritance diagram of PySide2.QtMultimedia.QAudioEncoderSettingsControl

详细描述

QMediaService supports encoding audio data it will implement QAudioEncoderSettingsControl . This control provides information about the limits of restricted audio encoder options and allows the selection of a set of audio encoder settings as specified in a QAudioEncoderSettings 对象。

The functionality provided by this control is exposed to application code through the QMediaRecorder 类。

The interface name of QAudioEncoderSettingsControl is org.qt-project.qt.audioencodersettingscontrol/5.0 作为定义在 QAudioEncoderSettingsControl_iid .

class QAudioEncoderSettingsControl ( [ parent=None ] )
param parent

QObject

Create a new audio encoder settings control object with the given parent .

PySide2.QtMultimedia.QAudioEncoderSettingsControl. audioSettings ( )
返回类型

QAudioEncoderSettings

Returns the audio encoder settings.

The returned value may be different tha passed to setAudioSettings() if the settings contains the default or undefined parameters. In this case if the undefined parameters are already resolved, they should be returned.

PySide2.QtMultimedia.QAudioEncoderSettingsControl. codecDescription ( codecName )
参数

codecName – unicode

返回类型

unicode

Returns the description of audio codec codecName .

PySide2.QtMultimedia.QAudioEncoderSettingsControl. setAudioSettings ( settings )
参数

settings QAudioEncoderSettings

Sets the selected audio settings .

另请参阅

audioSettings()

PySide2.QtMultimedia.QAudioEncoderSettingsControl. supportedAudioCodecs ( )
返回类型

字符串列表

Returns the list of supported audio codec names.