CLAM-Development  1.1
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
CLAM::AudioCodecs::MpegAudioStream Class Reference

#include <MpegAudioStream.hxx>

List of all members.

Public Member Functions

 MpegAudioStream ()
 MpegAudioStream (const AudioFile &file)
 ~MpegAudioStream ()
void SetFOI (const AudioFile &file)
void PrepareReading ()
void PrepareWriting ()
void PrepareReadWrite ()
void Dispose ()

Protected Member Functions

void AudioFileToNative (const AudioFile &file)
void DiskToMemoryTransfer ()
void MemoryToDiskTransfer ()
void ConsumeDecodedSamples ()

Protected Attributes

std::string mName
FILE * mpHandle
MpegBitstream mBitstream
int mEncodedSampleRate
int mEncodedChannels
std::vector< std::deque
< mad_fixed_t > > 
mDecodeBuffer
TSize mSamplesDecoded
TSize mSamplesTransferred

Static Protected Attributes

static const TSize mMaxDecodedBlockSize = 8192

Detailed Description

Definition at line 36 of file MpegAudioStream.hxx.


Constructor & Destructor Documentation

Definition at line 35 of file MpegAudioStream.cxx.

Definition at line 40 of file MpegAudioStream.cxx.

References SetFOI().

Definition at line 46 of file MpegAudioStream.cxx.

References CLAM_ASSERT, mName, and mpHandle.


Member Function Documentation

Implements CLAM::AudioCodecs::Stream.

Definition at line 199 of file MpegAudioStream.cxx.

References CLAM_ASSERT.

Implements CLAM::AudioCodecs::Stream.

Definition at line 104 of file MpegAudioStream.cxx.

References CLAM_ASSERT.

Implements CLAM::AudioCodecs::Stream.

Definition at line 99 of file MpegAudioStream.cxx.

References CLAM_ASSERT.

void CLAM::AudioCodecs::MpegAudioStream::SetFOI ( const AudioFile file) [virtual]

Implements CLAM::AudioCodecs::Stream.

Definition at line 62 of file MpegAudioStream.cxx.

References AudioFileToNative().

Referenced by MpegAudioStream().


Member Data Documentation

Definition at line 65 of file MpegAudioStream.hxx.

Referenced by DiskToMemoryTransfer(), Dispose(), and PrepareReading().

std::vector<std::deque<mad_fixed_t> > CLAM::AudioCodecs::MpegAudioStream::mDecodeBuffer [protected]

Definition at line 66 of file MpegAudioStream.hxx.

Referenced by AudioFileToNative().

Definition at line 69 of file MpegAudioStream.hxx.

Definition at line 63 of file MpegAudioStream.hxx.

Referenced by AudioFileToNative(), PrepareReading(), and ~MpegAudioStream().

Definition at line 64 of file MpegAudioStream.hxx.

Referenced by PrepareReading(), and ~MpegAudioStream().

Definition at line 71 of file MpegAudioStream.hxx.

Referenced by DiskToMemoryTransfer(), and PrepareReading().

Definition at line 72 of file MpegAudioStream.hxx.

Referenced by ConsumeDecodedSamples(), and PrepareReading().


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