Detailed Description
The QAudioEncoderControl class provides access to the settings of a media service that performs audio encoding.
If a QMediaService supports encoding audio data it will implement QAudioEncoderControl. 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 QAudioEncoderControl is com.nokia.Qt.QAudioEncoderControl/1.0 as defined in QAudioEncoderControl_iid.
Member Function Documentation
QAudioEncoderControl::QAudioEncoderControl ( QObject * parent = 0 ) [protected]
Create a new audio encode control object with the given parent.
QAudioEncoderControl::~QAudioEncoderControl () [virtual]
Destroys the audio encode control.
QAudioEncoderSettings QAudioEncoderControl::audioSettings () const [pure virtual]
Returns the audio encoder settings.
The returned value may be different tha passed to QAudioEncoderControl::setAudioSettings() if the settings contains the default or undefined parameters. In this case if the undefined parameters are already resolved, they should be returned.
See also setAudioSettings().
QString QAudioEncoderControl::codecDescription ( const QString & codec ) const [pure virtual]
Returns description of audio codec.
QVariant QAudioEncoderControl::encodingOption ( const QString & codec, const QString & option ) const [pure virtual]
Returns the value of audio encoding option for codec.
See also setEncodingOption().
void QAudioEncoderControl::setAudioSettings ( const QAudioEncoderSettings & settings ) [pure virtual]
Sets the selected audio settings.
See also audioSettings().
void QAudioEncoderControl::setEncodingOption ( const QString & codec, const QString & option, const QVariant & value ) [pure virtual]
Set the codec specific option to value.
See also encodingOption().
QStringList QAudioEncoderControl::supportedAudioCodecs () const [pure virtual]
Returns the list of supported audio codec names.
QStringList QAudioEncoderControl::supportedEncodingOptions ( const QString & codec ) const [pure virtual]
Returns the list of codec specific audio encoding options.
QList<int> QAudioEncoderControl::supportedSampleRates ( const QAudioEncoderSettings & settings, bool * continuous = 0 ) const [pure virtual]
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.