![]() |
Home · All Classes · All Functions · | ![]() |
The QAudioEncoderSettings class provides a set of audio encoder settings. More...
#include <QAudioEncoderSettings>
This class is under development and is subject to change.
QAudioEncoderSettings () | |
QAudioEncoderSettings ( const QAudioEncoderSettings & other ) | |
~QAudioEncoderSettings () | |
int | bitRate () const |
int | channelCount () const |
QString | codec () const |
QtMedia::EncodingMode | encodingMode () const |
bool | isNull () const |
QtMedia::EncodingQuality | quality () const |
int | sampleRate () const |
void | setBitRate ( int rate ) |
void | setChannelCount ( int channels ) |
void | setCodec ( const QString & codec ) |
void | setEncodingMode ( QtMedia::EncodingMode mode ) |
void | setQuality ( QtMedia::EncodingQuality quality ) |
void | setSampleRate ( int rate ) |
bool | operator!= ( const QAudioEncoderSettings & other ) const |
QAudioEncoderSettings & | operator= ( const QAudioEncoderSettings & other ) |
bool | operator== ( const QAudioEncoderSettings & other ) const |
The QAudioEncoderSettings class provides a set of audio encoder settings.
A audio encoder settings object is used to specify the audio encoder settings used by QMediaRecorder. Audio encoder settings are selected by constructing a QAudioEncoderSettings object, setting the desired properties and then passing it to a QMediaRecorder instance using the QMediaRecorder::setEncodingSettings() function.
QAudioEncoderSettings audioSettings; audioSettings.setCodec("audio/mpeg"); audioSettings.setChannelCount(2); recorder->setEncodingSettings(audioSettings);
See also QMediaRecorder and QAudioEncoderControl.
Construct a null audio encoder settings object.
Constructs a copy of the audio encoder settings object other.
Destroys an audio encoder settings object.
Returns the bit rate of the compressed audio stream in bits per second.
See also setBitRate().
Returns the number of audio channels.
See also setChannelCount().
Returns the audio codec.
See also setCodec().
Returns the audio encoding mode.
See also setEncodingMode() and QtMedia::EncodingMode.
Identifies if an audio settings object is initialized.
Returns true if the settings object is null, and false if it is not.
Returns the audio encoding quality.
See also setQuality().
Returns the audio sample rate.
See also setSampleRate().
Sets the audio bit rate.
See also bitRate().
Sets the number of audio channels.
A value of -1 indicates the encoder should make an optimal choice based on what is available from the audio source and the limitations of the codec.
See also channelCount().
Sets the audio codec.
See also codec().
Sets the audio encoding mode setting.
See also encodingMode() and QtMedia::EncodingMode.
Set the audio encoding quality.
See also quality().
Sets the audio sample rate.
A value of -1 indicates the encoder should make an optimal choice based on what is avaialbe from the audio source and the limitations of the codec.
See also sampleRate().
Determines if other is of equal value to an audio encoder settings object.
Returns true if the settings objects are not of equal value, and true if they are of equal value.
Assigns the value of other to an audio encoder settings object.
Determines if other is of equal value to an audio encoder settings object.
Returns true if the settings objects are of equal value, and true if they are not of equal value.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 |