#include <audioparameters.h>
List of all members.
Detailed Description
The AudioParameters class keeps information about audio settings.
- Author:
- Ilya Kotov <forkotov02@ya.ru>
Member Enumeration Documentation
Byte order of samples.
- Enumerator:
| LittleEndian |
Samples are in little-endian byte order
|
| BigEndian |
Samples are in big-endian byte order
|
Constructor & Destructor Documentation
Constructs audio settings with the given parameters.
- Parameters:
-
| srate | Sampling rate. |
| map | Channel map. |
| format | PCM data format. |
Constructs a copy of other.
Member Function Documentation
Returns sample size in bits.
Returns sample size in bits of the given pcm data format.
Returns byte order for selected audio format.
Returns number of channels.
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. |
Returns the number of bytes required to represent one frame (a sample in each channel) in this format.
Returns true if parameters p is not equal to this parameters; otherwise returns false.
Assigns audio parameters p to this parameters.
Returns true if parameters p is equal to this parameters; otherwise returns false.
Returns sample rate in Hz.
Returns sample size in bytes.
Returns sample size in bytes of the given pcm data format.
Returns string represention of the audio parameters. May be useful for debug purposes.
Returns the number of used bits in the sample. The value shoud be less or equal to the value returned by bitsPerSample().
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: