#include <audioparameters.h>
The AudioParameters class keeps information about audio settings.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ ByteOrder
Byte order of samples.
Enumerator |
---|
LittleEndian | Samples are in little-endian byte order
|
BigEndian | Samples are in big-endian byte order
|
◆ AudioParameters() [1/3]
◆ AudioParameters() [2/3]
Constructs audio settings with the given parameters.
- Parameters
-
srate | Sampling rate. |
map | Channel map. |
format | PCM data format. |
◆ AudioParameters() [3/3]
Constructs a copy of other.
◆ bitsPerSample() [1/2]
int bitsPerSample |
( |
| ) |
const |
Returns sample size in bits.
◆ bitsPerSample() [2/2]
Returns sample size in bits of the given pcm data format.
◆ byteOrder()
Returns byte order for selected audio format.
◆ channelMap()
◆ channels()
Returns number of channels.
◆ findAudioFormat()
Find audio format by number of bits and byte order. Returns Qmmp::UNKNOWN if format is not found.
- Parameters
-
bits | Number of used bits in the sample (precision). |
byteOrder | Byte order. |
◆ format()
◆ frameSize()
Returns the number of bytes required to represent one frame (a sample in each channel) in this format.
◆ operator!=()
Returns true if parameters p is not equal to this parameters; otherwise returns false.
◆ operator=()
Assigns audio parameters p to this parameters.
◆ operator==()
Returns true if parameters p is equal to this parameters; otherwise returns false.
◆ sampleRate()
quint32 sampleRate |
( |
| ) |
const |
Returns sample rate in Hz.
◆ sampleSize() [1/2]
Returns sample size in bytes.
◆ sampleSize() [2/2]
Returns sample size in bytes of the given pcm data format.
◆ toString()
const QString toString |
( |
| ) |
const |
Returns string represention of the audio parameters. May be useful for debug purposes.
◆ validBitsPerSample() [1/2]
int validBitsPerSample |
( |
| ) |
const |
Returns the number of used bits in the sample. The value shoud be less or equal to the value returned by bitsPerSample().
◆ validBitsPerSample() [2/2]
Returns the number of used bits in the sample of the given pcm data format.
The documentation for this class was generated from the following file: