EPOC::AudioManager Class Reference

#include <AudioManager.h>

Inheritance diagram for EPOC::AudioManager:

Inheritance graph
[legend]
Collaboration diagram for EPOC::AudioManager:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AudioManager (Application *pApplication)
virtual ~AudioManager ()
virtual void Cleanup ()
virtual bool Initialize (int nMixingChannels=16, int nFrequency=DEFAULT_FREQUENCY, int nSampleChunkSize=512, Uint16 nFormat=DEFAULT_FORMAT, int nOutputChannels=DEFAULT_CHANNELS)
virtual bool Update (float fTimeDelta)
MusicCreateMusic (std::string sFilePath, int nVolume=100)
SoundCreateSound (std::string sFilePath, int nVolume=100)
void DestroySound (Sound *pSound)
void AddSoundObject (Sound *pObject)
void RemoveSoundObject (Sound *pObject)
virtual void NotifyChannelDone (int nChannel)
Mix_Music * LoadMusicFromFile (std::string sFilePath)
Mix_Music * GetLoadedMusic (std::string sFilePath)
MixChunkLoadMixChunkFromFile (std::string sFilePath)
void RemoveLoadedMixChunk (MixChunk *pMixChunk)
MixChunkGetLoadedMixChunk (std::string sFilePath)

Protected Attributes

bool m_bInitialized
int m_nNumTimesOpened
int m_nMasterVolume
int m_nFrequency
int m_nOutputChannels
int m_nSampleChunkSize
Uint16 m_nFormat
int m_nMixingChannels
std::list< Music * > m_rMusic
std::list< Sound * > m_rSounds
std::list< MixChunk * > m_rLoadedMixChunks
std::map< std::string,
Mix_Music * > 
m_rLoadedMusic
Applicationm_pApplication


Constructor & Destructor Documentation

AudioManager::AudioManager ( Application pApplication  ) 

AudioManager::~AudioManager (  )  [virtual]


Member Function Documentation

void AudioManager::Cleanup (  )  [virtual]

bool AudioManager::Initialize ( int  nMixingChannels = 16,
int  nFrequency = DEFAULT_FREQUENCY,
int  nSampleChunkSize = 512,
Uint16  nFormat = DEFAULT_FORMAT,
int  nOutputChannels = DEFAULT_CHANNELS 
) [virtual]

bool AudioManager::Update ( float  fTimeDelta  )  [virtual]

Updates class data

Remarks:
This function is called once per frame.
Parameters:
fTimeDelta the time that has passed since last update, measured in milliseconds
Returns:
true if the update succeeded and false if it didn't

Reimplemented from EPOC::BaseObject.

Music* EPOC::AudioManager::CreateMusic ( std::string  sFilePath,
int  nVolume = 100 
)

Sound* EPOC::AudioManager::CreateSound ( std::string  sFilePath,
int  nVolume = 100 
)

void AudioManager::DestroySound ( Sound pSound  ) 

void AudioManager::AddSoundObject ( Sound pObject  ) 

void AudioManager::RemoveSoundObject ( Sound pObject  ) 

void AudioManager::NotifyChannelDone ( int  nChannel  )  [virtual]

Mix_Music* EPOC::AudioManager::LoadMusicFromFile ( std::string  sFilePath  ) 

Mix_Music* EPOC::AudioManager::GetLoadedMusic ( std::string  sFilePath  ) 

MixChunk* EPOC::AudioManager::LoadMixChunkFromFile ( std::string  sFilePath  ) 

void AudioManager::RemoveLoadedMixChunk ( MixChunk pMixChunk  ) 

MixChunk* EPOC::AudioManager::GetLoadedMixChunk ( std::string  sFilePath  ) 


Member Data Documentation

bool EPOC::AudioManager::m_bInitialized [protected]

int EPOC::AudioManager::m_nNumTimesOpened [protected]

int EPOC::AudioManager::m_nMasterVolume [protected]

int EPOC::AudioManager::m_nFrequency [protected]

int EPOC::AudioManager::m_nOutputChannels [protected]

int EPOC::AudioManager::m_nSampleChunkSize [protected]

Uint16 EPOC::AudioManager::m_nFormat [protected]

int EPOC::AudioManager::m_nMixingChannels [protected]

std::list<Music*> EPOC::AudioManager::m_rMusic [protected]

std::list<Sound*> EPOC::AudioManager::m_rSounds [protected]

std::list<MixChunk*> EPOC::AudioManager::m_rLoadedMixChunks [protected]

std::map<std::string, Mix_Music*> EPOC::AudioManager::m_rLoadedMusic [protected]

Application* EPOC::AudioManager::m_pApplication [protected]


The documentation for this class was generated from the following files:
Generated on Tue Feb 12 08:26:01 2008 for EPOC by  doxygen 1.5.4