MediaWare Solutions MPEG SDK

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

Constructors Index

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


Variables Index

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


Methods Index

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.


Constructors

SoundBite

public SoundBite ( ) ;

Default Constructor.

SoundBite

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

SoundBite

public SoundBite ( SoundBite & x ) ;

SoundBite

public virtual ~ SoundBite ( ) ;


Variables

_nch

protected int _nch

_numsamples

protected int _numsamples

_sampling_frequency

protected float _sampling_frequency

_empty

protected bool _empty


Methods

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.


Copyright © 2000 Mediaware Solutions Pty Ltd
All rights reserved

Click here to return to the top of the page.