Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

SoundReader Class Reference

#include <RageSoundReader.h>

Inheritance diagram for SoundReader:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual int GetLength () const =0
virtual int GetLength_Fast () const
virtual int SetPosition_Accurate (int ms)=0
virtual int SetPosition_Fast (int ms)
virtual int Read (char *buf, unsigned len)=0
virtual ~SoundReader ()
virtual SoundReaderCopy () const =0
virtual int GetSampleRate () const =0
virtual unsigned GetNumChannels () const
virtual bool IsStreamingFromDisk () const =0
bool Error () const
string GetError () const

Protected Member Functions

void SetError (string e) const

Private Attributes

string error

Constructor & Destructor Documentation

virtual SoundReader::~SoundReader  )  [inline, virtual]
 


Member Function Documentation

virtual SoundReader* SoundReader::Copy  )  const [pure virtual]
 

Implemented in RageSoundReader_Silence, RageSoundReader_Chain, RageSoundReader_MP3, RageSoundReader_Preload, RageSoundReader_Resample_Fast, RageSoundReader_Resample_Good, RageSoundReader_Vorbisfile, and RageSoundReader_WAV.

bool SoundReader::Error  )  const [inline]
 

string SoundReader::GetError  )  const [inline]
 

virtual int SoundReader::GetLength  )  const [pure virtual]
 

Implemented in RageSoundReader_Silence, RageSoundReader_Chain, RageSoundReader_MP3, RageSoundReader_Preload, RageSoundReader_Resample_Fast, RageSoundReader_Resample_Good, RageSoundReader_Vorbisfile, and RageSoundReader_WAV.

virtual int SoundReader::GetLength_Fast  )  const [inline, virtual]
 

Reimplemented in RageSoundReader_Silence, RageSoundReader_Chain, RageSoundReader_MP3, RageSoundReader_Preload, RageSoundReader_Resample_Fast, RageSoundReader_Resample_Good, RageSoundReader_Vorbisfile, and RageSoundReader_WAV.

virtual unsigned SoundReader::GetNumChannels  )  const [inline, virtual]
 

Reimplemented in RageSoundReader_Chain, RageSoundReader_Preload, RageSoundReader_Resample_Fast, RageSoundReader_Resample_Good, RageSoundReader_Vorbisfile, and RageSoundReader_WAV.

virtual int SoundReader::GetSampleRate  )  const [pure virtual]
 

Implemented in RageSoundReader_Silence, RageSoundReader_Chain, RageSoundReader_MP3, RageSoundReader_Preload, RageSoundReader_Resample_Fast, RageSoundReader_Resample_Good, RageSoundReader_Vorbisfile, and RageSoundReader_WAV.

virtual bool SoundReader::IsStreamingFromDisk  )  const [pure virtual]
 

Implemented in RageSoundReader_Silence, RageSoundReader_Chain, SoundReader_FileReader, RageSoundReader_Preload, RageSoundReader_Resample_Fast, and RageSoundReader_Resample_Good.

virtual int SoundReader::Read char *  buf,
unsigned  len
[pure virtual]
 

Implemented in RageSoundReader_Silence, RageSoundReader_Chain, RageSoundReader_MP3, RageSoundReader_Preload, RageSoundReader_Resample_Fast, RageSoundReader_Resample_Good, RageSoundReader_Vorbisfile, and RageSoundReader_WAV.

void SoundReader::SetError string  e  )  const [inline, protected]
 

virtual int SoundReader::SetPosition_Accurate int  ms  )  [pure virtual]
 

Implemented in RageSoundReader_Silence, RageSoundReader_Chain, RageSoundReader_MP3, RageSoundReader_Preload, RageSoundReader_Resample_Fast, RageSoundReader_Resample_Good, RageSoundReader_Vorbisfile, and RageSoundReader_WAV.

virtual int SoundReader::SetPosition_Fast int  ms  )  [inline, virtual]
 

Reimplemented in RageSoundReader_Silence, RageSoundReader_Chain, RageSoundReader_MP3, RageSoundReader_Preload, RageSoundReader_Resample_Fast, RageSoundReader_Resample_Good, RageSoundReader_Vorbisfile, and RageSoundReader_WAV.


Member Data Documentation

string SoundReader::error [mutable, private]
 


The documentation for this class was generated from the following file:
Generated on Thu Jan 27 21:04:27 2005 for StepMania by doxygen 1.3.7