#include <PCMAudioStream.hxx>
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. |
Definition at line 39 of file PCMAudioStream.hxx.
CLAM::AudioCodecs::PCMAudioStream::PCMAudioStream | ( | const AudioFile & | file | ) |
Definition at line 39 of file PCMAudioStream.cxx.
References CLAM::AudioFile::GetHeader(), CLAM::AudioFile::GetLocation(), and CLAM::AudioCodecs::Stream::SetChannels().
CLAM::AudioCodecs::PCMAudioStream::~PCMAudioStream | ( | ) |
Definition at line 49 of file PCMAudioStream.cxx.
References Dispose().
void CLAM::AudioCodecs::PCMAudioStream::DiskToMemoryTransfer | ( | ) | [protected, virtual] |
Move data from the file to mInterleavedData.
Implements CLAM::AudioCodecs::Stream.
Definition at line 85 of file PCMAudioStream.cxx.
References CLAM_sf_readf, CLAM::AudioCodecs::Stream::mEOFReached, CLAM::AudioCodecs::Stream::mFramePosition, CLAM::AudioCodecs::Stream::mFramesLastRead, and CLAM::AudioCodecs::Stream::mInterleavedData.
void CLAM::AudioCodecs::PCMAudioStream::Dispose | ( | ) | [virtual] |
Close the stream.
Implements CLAM::AudioCodecs::Stream.
Definition at line 76 of file PCMAudioStream.cxx.
References NULL.
Referenced by ~PCMAudioStream().
void CLAM::AudioCodecs::PCMAudioStream::MemoryToDiskTransfer | ( | ) | [protected, virtual] |
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.
void CLAM::AudioCodecs::PCMAudioStream::PrepareReading | ( | ) | [virtual] |
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.
void CLAM::AudioCodecs::PCMAudioStream::PrepareWriting | ( | ) | [virtual] |
Open the stream in write mode.
Implements CLAM::AudioCodecs::Stream.
Definition at line 66 of file PCMAudioStream.cxx.
References CLAM_ASSERT, and NULL.
void CLAM::AudioCodecs::PCMAudioStream::SeekTo | ( | long unsigned | framePosition | ) |
Definition at line 122 of file PCMAudioStream.cxx.
References CLAM::AudioCodecs::Stream::mEOFReached, and CLAM::AudioCodecs::Stream::mFramePosition.