MPEG SDK --> MpegDecoder
The PCMBite class defines a set of PCM audio samples that can be played as a single unit of audio. Its samples are in 16bit short format.
If there is only one channel, then the channel's samples are stored in the left channel's buffer.
The number of samples per bite depends on the number of samples in a decodeable unit in the MPEG audio layer. For layer 1, a bite contains 384 samples, for layer 2, a bite contains 1152 samples.
PCMBite
PCMBite
PCMBite
~PCMBite
left
left
operator []
right
right
public PCMBite ( ) ;
Constructor
public PCMBite ( int nch ,
int numsamples ,
float samplingfreq ) ;
Constructor for the PCMBite audio unit. Constructs the PCMBite to have nch channels with numsamples per channel.
public PCMBite ( const PCMBite & x ) ;
Copy constructor.
public ~ PCMBite ( ) ;
Destructor. Free's all internal buffers.
public int16 * left ( ) ;
Return a pointer to the left channel's buffer;
public int16 * left ( ) const ;
Return a pointer to the left channel's buffer;
public int16 * right ( ) ;
Return a pointer to the right channel's buffer
public int16 * right ( ) const ;
Return a pointer to the right channel's buffer
public int16 * operator [ ] ( int i ) ;
[] operator to return left or right channel respectively
Click here to return to the top of the page.