#include <audioparameters.h>
Public Member Functions | |
AudioParameters () | |
AudioParameters (quint32 srate, int chan, Qmmp::AudioFormat format) | |
AudioParameters (const AudioParameters &other) | |
void | operator= (const AudioParameters &p) |
bool | operator== (const AudioParameters &p) const |
bool | operator!= (const AudioParameters &p) const |
quint32 | sampleRate () const |
int | channels () const |
Qmmp::AudioFormat | format () const |
int | sampleSize () const |
Static Public Member Functions | |
static int | sampleSize (Qmmp::AudioFormat format) |
AudioParameters | ( | ) |
Contsructor.
AudioParameters | ( | quint32 | srate, | |
int | chan, | |||
Qmmp::AudioFormat | format | |||
) |
Constructs audio settings with the given parameters.
srate | Sampling rate. | |
chan | Number of channels. | |
format | PCM data format. |
AudioParameters | ( | const AudioParameters & | other | ) |
Constructs a copy of other.
int channels | ( | ) | const |
Returns number of channels.
Qmmp::AudioFormat format | ( | ) | const |
Returns pcm format.
bool operator!= | ( | const AudioParameters & | p | ) | const |
Returns true if parameters p is not equal to this parameters; otherwise returns false.
void operator= | ( | const AudioParameters & | p | ) |
Assigns audio parameters p to this parameters.
bool operator== | ( | const AudioParameters & | p | ) | const |
Returns true if parameters p is equal to this parameters; otherwise returns false.
quint32 sampleRate | ( | ) | const |
Returns sample rate in Hz.
static int sampleSize | ( | Qmmp::AudioFormat | format | ) | [static] |
Returns sample size in bytes of the given pcm data format.
int sampleSize | ( | ) | const |
Returns sample size in bytes.