CLAM-Development  1.3
Public Member Functions | Protected Member Functions
CLAM::AudioCodecs::PCMAudioStream Class Reference

#include <PCMAudioStream.hxx>

List of all members.

Public Member Functions

 PCMAudioStream (const AudioFile &file)
 ~PCMAudioStream ()
void PrepareReading ()
 Open the stream in read mode.
void PrepareWriting ()
 Open the stream in write mode.
void Dispose ()
 Close the stream.
void SeekTo (long unsigned framePosition)

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 39 of file PCMAudioStream.hxx.


Constructor & Destructor Documentation

Definition at line 49 of file PCMAudioStream.cxx.

References Dispose().


Member Function Documentation

Close the stream.

Implements CLAM::AudioCodecs::Stream.

Definition at line 76 of file PCMAudioStream.cxx.

References NULL.

Referenced by ~PCMAudioStream().

Move data from mInterleavedData to the file.

Implements CLAM::AudioCodecs::Stream.

Definition at line 110 of file PCMAudioStream.cxx.

References CLAM_DEBUG_ASSERT, CLAM_sf_writef, CLAM::AudioCodecs::Stream::mChannels, and CLAM::AudioCodecs::Stream::mInterleavedData.

Open the stream in read mode.

Implements CLAM::AudioCodecs::Stream.

Definition at line 54 of file PCMAudioStream.cxx.

References CLAM_ASSERT, CLAM::AudioCodecs::Stream::mEOFReached, CLAM::AudioCodecs::Stream::mFramePosition, and NULL.

Open the stream in write mode.

Implements CLAM::AudioCodecs::Stream.

Definition at line 66 of file PCMAudioStream.cxx.

References CLAM_ASSERT, and NULL.


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