|
|
This class manages audio quality.
|
Default constructor.
|
Constructor for new AudioQuality object with given quality
Parameters:
samplingRate | SamplingRate. |
bits | Number of bits. |
channels | Number of channels. |
byteOrder | Byte order: BIG_ENDIAN, LITTLE_ENDIAN. |
|
Constructor for new AudioQuality object from given AudioQualityInterface
Parameters:
quality | AudioQualityInterface. |
card16 |
[const]
getSamplingRate() Implementation of AudioQualityInterface.
Reimplemented from AudioQualityInterface.
card8 |
[const]
getBits() Implementation of AudioQualityInterface.
Reimplemented from AudioQualityInterface.
card8 |
[const]
getChannels() Implementation of AudioQualityInterface.
Reimplemented from AudioQualityInterface.
card16 |
[const]
getByteOrder() Implementation of AudioQualityInterface.
Reimplemented from AudioQualityInterface.
cardinal |
[const]
getBytesPerSecond() Implementation of AudioQualityInterface.
Reimplemented from AudioQualityInterface.
cardinal |
[const]
getBitsPerSample() Implementation of AudioQualityInterface.
Reimplemented from AudioQualityInterface.
card16 |
setSamplingRate() Implementation of AdjustableAudioQualityInterface.
Reimplemented from AdjustableAudioQualityInterface.
card8 |
setBits() Implementation of AdjustableAudioQualityInterface.
Reimplemented from AdjustableAudioQualityInterface.
card8 |
setChannels() Implementation of AdjustableAudioQualityInterface.
Reimplemented from AdjustableAudioQualityInterface.
card16 |
setByteOrder() Implementation of AdjustableAudioQualityInterface.
Reimplemented from AdjustableAudioQualityInterface.
inline bool |
[const]
Check, if quality is lowest quality.
Returns: true, if quality is lowest; false otherwise.
inline bool |
[const]
Check, if quality is highest quality.
Returns: true, is quality is highest; false otherwise.
void |
Increase quality by given number of steps. The number of steps available is given by QualityLevels constant.
Parameters:
steps | Number of steps. |
void |
Decrease quality by given number of steps. The number of steps available is given by QualityLevels constant.
Parameters:
steps | Number of steps. |
bool |
Set sampling rate to next lower value.
Returns: true, if sampling rate has been set; false, if it was already lowest.
bool |
Set sampling rate to next higher value.
Returns: true, if sampling rate has been set; false, if it was already highest.
inline card64 |
[const]
Convert bytes to microseconds.
inline size_t |
[const]
Convert microseconds to bytes.
AudioQuality& |
Implementation of = operator.
AudioQuality |
Implementation of ++ operator.
AudioQuality |
Implementation of -- operator.
AudioQuality |
[static]
Get maximum audio quality for a given byte rate.
Parameters:
bps | Bytes per second. |
Returns: AudioQuality.
AudioQuality |
[static]
Get a random quality setting. All settings have the same probability.
Returns: Random quality setting.
static const card16* |
Table with valid sampling rate values.
static const cardinal |
Number of valid sampling rates in ValidRatesTable.
static const card8* |
Table with valid bit values.
static const cardinal |
Number of valid bits values in ValidRatesTable.
static const card8* |
Table with valid channel values.
static const cardinal |
Number of valid channels values in ValidRatesTable.
static const AudioQuality |
Constant for lowest quality.
static const AudioQuality |
Constant for highest quality.
static const card16 |
Constant for lowest sampling rate.
static const card16 |
Constant for highest sampling rate.
static const card8 |
Constant for lowest number of bits.
static const card8 |
Constant for highest number of bits.
static const card8 |
Constant for lowest number of channels.
static const card8 |
Constant for highest number of channels.
static const cardinal |
Number of quality levels supported by operator++/operator--.