QAudioEncoderSettingsControl Class
The QAudioEncoderSettingsControl class provides access to the settings of a media service that performs audio encoding. 更多...
头文件: | #include <QAudioEncoderSettingsControl> |
qmake: | QT += multimedia |
基类: | QMediaControl |
公有函数
virtual | ~QAudioEncoderSettingsControl() |
virtual QAudioEncoderSettings | audioSettings() const = 0 |
virtual QString | codecDescription(const QString &codec) const = 0 |
virtual void | setAudioSettings(const QAudioEncoderSettings &settings) = 0 |
virtual QStringList | supportedAudioCodecs() const = 0 |
virtual QList<int> | supportedSampleRates(const QAudioEncoderSettings &settings, bool *continuous = Q_NULLPTR) const = 0 |
- 32 个公有函数继承自 QObject
受保护的函数
QAudioEncoderSettingsControl(QObject *parent = Q_NULLPTR) |
- 9 个受保护的函数继承自 QObject
Macros
其他继承的成员
- 1 个属性继承自 QObject
- 1 个公有槽函数继承自 QObject
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
The QAudioEncoderSettingsControl class provides access to the settings of a media service that performs audio encoding.
If a 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 object.
The functionality provided by this control is exposed to application code through the QMediaRecorder class.
The interface name of QAudioEncoderSettingsControl is org.qt-project.qt.audioencodersettingscontrol/5.0
as defined in QAudioEncoderSettingsControl_iid.
参见 QMediaService::requestControl() and QMediaRecorder.
成员函数
[protected]
QAudioEncoderSettingsControl::QAudioEncoderSettingsControl(QObject *parent = Q_NULLPTR)
Create a new audio encoder settings control object with the given parent.
[virtual]
QAudioEncoderSettingsControl::~QAudioEncoderSettingsControl()
Destroys the audio encoder settings control.
[pure virtual]
QAudioEncoderSettings QAudioEncoderSettingsControl::audioSettings() const
Returns the audio encoder settings.
The returned value may be different tha passed to QAudioEncoderSettingsControl::setAudioSettings() if the settings contains the default or undefined parameters. In this case if the undefined parameters are already resolved, they should be returned.
参见 setAudioSettings().
[pure virtual]
QString QAudioEncoderSettingsControl::codecDescription(const QString &codec) const
Returns description of audio codec.
[pure virtual]
void QAudioEncoderSettingsControl::setAudioSettings(const QAudioEncoderSettings &settings)
Sets the selected audio settings.
参见 audioSettings().
[pure virtual]
QStringList QAudioEncoderSettingsControl::supportedAudioCodecs() const
Returns the list of supported audio codec names.
[pure virtual]
QList<int> QAudioEncoderSettingsControl::supportedSampleRates(const QAudioEncoderSettings &settings, bool *continuous = Q_NULLPTR) const
Returns the list of supported audio sample rates, if known.
If non null audio settings parameter is passed, the returned list is reduced to sample rates supported with partial settings applied.
It can be used for example to query the list of sample rates, supported by specific audio codec.
If the encoder supports arbitrary sample rates within the supported rates range, *continuous is set to true, otherwise *continuous is set to false.
宏
QAudioEncoderSettingsControl_iid
org.qt-project.qt.audioencodersettingscontrol/5.0
Defines the interface name of the QAudioEncoderSettingsControl class.