#include <AudioManager.h>
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) |
Music * | CreateMusic (std::string sFilePath, int nVolume=100) |
Sound * | CreateSound (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) |
MixChunk * | LoadMixChunkFromFile (std::string sFilePath) |
void | RemoveLoadedMixChunk (MixChunk *pMixChunk) |
MixChunk * | GetLoadedMixChunk (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 |
Application * | m_pApplication |
AudioManager::AudioManager | ( | Application * | pApplication | ) |
AudioManager::~AudioManager | ( | ) | [virtual] |
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
fTimeDelta | the time that has passed since last update, measured in milliseconds |
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 | ) |
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] |