QAudioEncoderSettingsControlclass provides access to the settings of a media service that performs audio encoding. 更多 …
若
QMediaServicesupports encoding audio data it will implementQAudioEncoderSettingsControl. 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 aQAudioEncoderSettings对象。The functionality provided by this control is exposed to application code through the
QMediaRecorder类。The interface name of
QAudioEncoderSettingsControlisorg.qt-project.qt.audioencodersettingscontrol/5.0作为定义在QAudioEncoderSettingsControl_iid.
QAudioEncoderSettingsControl
(
[
parent=None
]
)
¶
- param parent
QObject
Create a new audio encoder settings control object with the given
parent
.
PySide2.QtMultimedia.QAudioEncoderSettingsControl.
audioSettings
(
)
¶
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
.
另请参阅
PySide2.QtMultimedia.QAudioEncoderSettingsControl.
supportedAudioCodecs
(
)
¶
字符串列表
Returns the list of supported audio codec names.