    MPEG SDK --> MpegDecoder

class PCMBite
extends SoundBite as public

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.

Author:
  Kevin W. Moore

Source:
  PCMBite.h:46

See Also:
  SoundBite

##

PCMBite
  [public] Constructor
PCMBite
  [public] Constructor for the PCMBite audio unit. Constructs the PCMBite to have nch channels with numsamples per channel.
PCMBite
  [public] Copy constructor.
~PCMBite
  [public] Destructor. Free's all internal buffers.

##

left
  [public] Return a pointer to the left channel's buffer;
left
  [public] Return a pointer to the left channel's buffer;
operator []
  [public] [] operator to return left or right channel respectively
right
  [public] Return a pointer to the right channel's buffer
right
  [public] Return a pointer to the right channel's buffer

##

PCMBite

    public PCMBite ( ) ;

Constructor

PCMBite

    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.

PCMBite

    public PCMBite ( const PCMBite & x ) ;

Copy constructor.

PCMBite

    public ~ PCMBite ( ) ;

Destructor. Free's all internal buffers.

##

left

    public int16 * left ( ) ;

Return a pointer to the left channel's buffer;

left

    public int16 * left ( ) const ;

Return a pointer to the left channel's buffer;

right

    public int16 * right ( ) ;

Return a pointer to the right channel's buffer

right

    public int16 * right ( ) const ;

Return a pointer to the right channel's buffer

operator []

    public int16 * operator [ ] ( int i ) ;

[] operator to return left or right channel respectively

This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.

Click here to return to the top of the page.