CLAM::AudioCodecs::MpegAudioStream Class Reference

#include <MpegAudioStream.hxx>

Inheritance diagram for CLAM::AudioCodecs::MpegAudioStream:

CLAM::AudioCodecs::Stream

List of all members.

Public Member Functions

 MpegAudioStream (const AudioFile &file)
 ~MpegAudioStream ()
void PrepareReading ()
 Open the stream in read mode.
void PrepareWriting ()
 Open the stream in write mode.
void Dispose ()
 Close the stream.
void SeekTo (unsigned long framePosition)
 Moves the current position to framePosition. If such functionality is not supported by the stream it will be ignored.

Protected Member Functions

void DiskToMemoryTransfer ()
 Move data from the file to mInterleavedData.
void MemoryToDiskTransfer ()
 Move data from mInterleavedData to the file.


Detailed Description

Definition at line 36 of file MpegAudioStream.hxx.


Constructor & Destructor Documentation

CLAM::AudioCodecs::MpegAudioStream::MpegAudioStream ( const AudioFile &  file  ) 

CLAM::AudioCodecs::MpegAudioStream::~MpegAudioStream (  ) 

Definition at line 44 of file MpegAudioStream.cxx.


Member Function Documentation

void CLAM::AudioCodecs::MpegAudioStream::PrepareReading (  )  [virtual]

Open the stream in read mode.

Implements CLAM::AudioCodecs::Stream.

Definition at line 50 of file MpegAudioStream.cxx.

References CLAM_ASSERT, CLAM::AudioCodecs::MpegBitstream::Init(), and CLAM::AudioCodecs::Stream::mFramePosition.

void CLAM::AudioCodecs::MpegAudioStream::PrepareWriting (  )  [virtual]

Open the stream in write mode.

Implements CLAM::AudioCodecs::Stream.

Definition at line 70 of file MpegAudioStream.cxx.

References CLAM_ASSERT.

void CLAM::AudioCodecs::MpegAudioStream::Dispose (  )  [virtual]

Close the stream.

Implements CLAM::AudioCodecs::Stream.

Definition at line 75 of file MpegAudioStream.cxx.

References CLAM::AudioCodecs::MpegBitstream::Finish().

void CLAM::AudioCodecs::MpegAudioStream::SeekTo ( unsigned long  framePosition  )  [virtual]

void CLAM::AudioCodecs::MpegAudioStream::DiskToMemoryTransfer (  )  [protected, virtual]

void CLAM::AudioCodecs::MpegAudioStream::MemoryToDiskTransfer (  )  [protected, virtual]

Move data from mInterleavedData to the file.

Implements CLAM::AudioCodecs::Stream.

Definition at line 169 of file MpegAudioStream.cxx.

References CLAM_ASSERT.


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

Generated on Mon Oct 18 20:36:41 2010 for CLAM-Development by  doxygen 1.5.6