AudioParameters Class Reference

The AudioParameters class keeps information about audio settings. More...

#include <audioparameters.h>

List of all members.

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)


Detailed Description

The AudioParameters class keeps information about audio settings.

Author:
Ilya Kotov <forkotov02@hotmail.ru>

Constructor & Destructor Documentation

AudioParameters (  ) 

Contsructor.

AudioParameters ( quint32  srate,
int  chan,
Qmmp::AudioFormat  format 
)

Constructs audio settings with the given parameters.

Parameters:
srate Sampling rate.
chan Number of channels.
format PCM data format.

AudioParameters ( const AudioParameters other  ) 

Constructs a copy of other.


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Generated on Thu Nov 10 20:39:10 2011 for Qmmp by  doxygen 1.5.9