    MPEG SDK --> MpegDecoder

class SoundBite

The SoundBite class represents a decodeable/playable unit of sound from the MPEG audio stream. It is roughly parallel to a "picture" in the video stream.

The SoundBite class is the abstract class that defines the number of samples, the number of channels, and the sample frequency of the unit. Derived classes instantiate a unit of audio for different audio formats.

Author:
  Kevin W. Moore

Source:
  SoundBite.h:37

See Also:
  PCMBite

  Friends:

         friend std_ostream & operator << ( std_ostream & out , const SoundBite & x ) ;
    | Debugging Print

##

SoundBite
  [public] Default Constructor.
SoundBite
  [public]
SoundBite
  [public]
~SoundBite
  [public]

##

_empty
  [protected]
_nch
  [protected]
_numsamples
  [protected]
_sampling_frequency
  [protected]

##

empty
  [public] Whether the SoundBite is empty of samples.
getNumSamples
  [public] Return the number of samples per channel.
getSamplingFrequency
  [public] Return the sampling frequency of the samples.
nch
  [public] Return the number of audio channels.
timePerSample
  [public] Return the time in seconds per sample.

##

SoundBite

    public SoundBite ( ) ;

Default Constructor.

SoundBite

    public SoundBite ( int nch ,
                       int numsamples ,
                       float samplingfreq ) ;

SoundBite

    public SoundBite ( SoundBite & x ) ;

SoundBite

    public virtual ~ SoundBite ( ) ;

##

_nch

    protected int _nch

_numsamples

    protected int _numsamples

_sampling_frequency

    protected float _sampling_frequency

_empty

    protected bool _empty

##

nch

    public int nch ( ) const ;

Return the number of audio channels.

getNumSamples

    public int getNumSamples ( ) const ;

Return the number of samples per channel.

getSamplingFrequency

    public float getSamplingFrequency ( ) const ;

Return the sampling frequency of the samples.

timePerSample

    public float timePerSample ( ) const ;

Return the time in seconds per sample.

empty

    public bool empty ( ) const ;

Whether the SoundBite is empty of samples.

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.