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

RageSoundReader_Chain Class Reference

#include <RageSoundReader_Chain.h>

Inheritance diagram for RageSoundReader_Chain:

Inheritance graph
[legend]
Collaboration diagram for RageSoundReader_Chain:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RageSoundReader_Chain ()
 ~RageSoundReader_Chain ()
SoundReaderCopy () const
void SetPreferredSampleRate (int iSampleRate)
bool AddSound (CString sPath, float fOffsetSecs, float fPan)
void Finish ()
int GetLength () const
int GetLength_Fast () const
int SetPosition_Accurate (int ms)
int SetPosition_Fast (int ms)
int Read (char *buf, unsigned len)
int GetSampleRate () const
unsigned GetNumChannels () const
bool IsStreamingFromDisk () const

Private Member Functions

int ReadBlock (int16_t *pBuffer, int iFrames)
int GetSampleRateInternal () const
unsigned GetNextSoundIndex () const
unsigned ActivateSound (const sound &s)
void ReleaseSound (unsigned n)

Private Attributes

int m_iPreferredSampleRate
int m_iActualSampleRate
unsigned m_iChannels
map< CString, SoundReader * > m_apLoadedSounds
vector< soundm_Sounds
int m_iCurrentFrame
unsigned m_iNextSound
vector< ActiveSoundm_apActiveSounds

Constructor & Destructor Documentation

RageSoundReader_Chain::RageSoundReader_Chain  ) 
 

RageSoundReader_Chain::~RageSoundReader_Chain  ) 
 


Member Function Documentation

unsigned RageSoundReader_Chain::ActivateSound const sound s  )  [private]
 

bool RageSoundReader_Chain::AddSound CString  sPath,
float  fOffsetSecs,
float  fPan
 

SoundReader * RageSoundReader_Chain::Copy  )  const [virtual]
 

Implements SoundReader.

void RageSoundReader_Chain::Finish  ) 
 

int RageSoundReader_Chain::GetLength  )  const [virtual]
 

Implements SoundReader.

int RageSoundReader_Chain::GetLength_Fast  )  const [virtual]
 

Reimplemented from SoundReader.

unsigned RageSoundReader_Chain::GetNextSoundIndex  )  const [private]
 

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

Reimplemented from SoundReader.

int RageSoundReader_Chain::GetSampleRate  )  const [inline, virtual]
 

Implements SoundReader.

int RageSoundReader_Chain::GetSampleRateInternal  )  const [private]
 

bool RageSoundReader_Chain::IsStreamingFromDisk  )  const [virtual]
 

Implements SoundReader.

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

Implements SoundReader.

int RageSoundReader_Chain::ReadBlock int16_t *  pBuffer,
int  iFrames
[private]
 

void RageSoundReader_Chain::ReleaseSound unsigned  n  )  [private]
 

int RageSoundReader_Chain::SetPosition_Accurate int  ms  )  [virtual]
 

Implements SoundReader.

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

Reimplemented from SoundReader.

void RageSoundReader_Chain::SetPreferredSampleRate int  iSampleRate  )  [inline]
 


Member Data Documentation

vector<ActiveSound> RageSoundReader_Chain::m_apActiveSounds [private]
 

map<CString, SoundReader *> RageSoundReader_Chain::m_apLoadedSounds [private]
 

int RageSoundReader_Chain::m_iActualSampleRate [private]
 

unsigned RageSoundReader_Chain::m_iChannels [private]
 

int RageSoundReader_Chain::m_iCurrentFrame [private]
 

unsigned RageSoundReader_Chain::m_iNextSound [private]
 

int RageSoundReader_Chain::m_iPreferredSampleRate [private]
 

vector<sound> RageSoundReader_Chain::m_Sounds [private]
 


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