Pyrogenesis
13997
|
#include <SoundManager.h>
Public Member Functions | |
CSoundManager () | |
virtual | ~CSoundManager () |
ISoundItem * | LoadItem (const VfsPath &itemPath) |
ISoundItem * | ItemForData (CSoundData *itemData) |
ISoundItem * | ItemForEntity (entity_id_t source, CSoundData *sndData) |
Status | ReloadChangedFiles (const VfsPath &path) |
void | ClearPlayListItems () |
void | StartPlayList (bool doLoop) |
void | AddPlayListItem (const VfsPath &itemPath) |
void | SetMusicEnabled (bool isEnabled) |
void | setSoundEnabled (bool enabled) |
ALuint | GetALSource (ISoundItem *anItem) |
void | ReleaseALSource (ALuint theSource) |
ISoundItem * | ItemFromData (CSoundData *itemData) |
ISoundItem * | ItemFromWAV (VfsPath &fname) |
ISoundItem * | ItemFromOgg (VfsPath &fname) |
ISoundItem * | GetSoundItem (unsigned long itemRow) |
unsigned long | Count () |
void | IdleTask () |
void | SetMemoryUsage (long bufferSize, int bufferCount) |
long | GetBufferCount () |
long | GetBufferSize () |
void | PlayAsMusic (const VfsPath &itemPath, bool looping) |
void | PlayAsAmbient (const VfsPath &itemPath, bool looping) |
void | PlayAsUI (const VfsPath &itemPath, bool looping) |
void | PlayAsGroup (const VfsPath &groupPath, CVector3D sourcePos, entity_id_t source, bool ownedSound) |
void | PlayGroupItem (ISoundItem *anItem, ALfloat groupGain) |
bool | InDistress () |
void | SetDistressThroughShortage () |
void | SetDistressThroughError () |
void | Pause (bool pauseIt) |
void | PauseMusic (bool pauseIt) |
void | PauseAmbient (bool pauseIt) |
void | PauseAction (bool pauseIt) |
void | SetAmbientItem (ISoundItem *anItem) |
![]() | |
virtual | ~ISoundManager () |
Static Public Member Functions | |
static void | ScriptingInit () |
static void | CreateSoundManager () |
static void | SetEnabled (bool doEnable) |
static Status | ReloadChangedFileCB (void *param, const VfsPath &path) |
static void | CloseGame () |
static void | al_ReportError (ALenum err, const char *caller, int line) |
static void | al_check (const char *caller, int line) |
![]() | |
static void | CreateSoundManager () |
static void | SetEnabled (bool doEnable) |
static void | CloseGame () |
Protected Member Functions | |
void | InitListener () |
Status | AlcInit () |
void | SetMusicItem (ISoundItem *anItem) |
void | SetMasterGain (float gain) |
void | SetMusicGain (float gain) |
void | SetAmbientGain (float gain) |
void | SetActionGain (float gain) |
void | SetUIGain (float gain) |
Protected Attributes | |
ALuint | m_ALEnvironment |
ALCcontext * | m_Context |
ALCdevice * | m_Device |
ISoundItem * | m_CurrentTune |
ISoundItem * | m_CurrentEnvirons |
CSoundManagerWorker * | m_Worker |
CMutex | m_DistressMutex |
PlayList * | m_PlayListItems |
SoundGroupMap | m_SoundGroups |
float | m_Gain |
float | m_MusicGain |
float | m_AmbientGain |
float | m_ActionGain |
float | m_UIGain |
bool | m_Enabled |
long | m_BufferSize |
int | m_BufferCount |
bool | m_MusicEnabled |
bool | m_SoundEnabled |
bool | m_MusicPaused |
bool | m_AmbientPaused |
bool | m_ActionPaused |
bool | m_RunningPlaylist |
bool | m_PlayingPlaylist |
bool | m_LoopingPlaylist |
long | m_PlaylistGap |
long | m_DistressErrCount |
long | m_DistressTime |
ALSourceHolder * | m_ALSourceBuffer |
Private Member Functions | |
NONCOPYABLE (CSoundManager) | |
CSoundManager (CSoundManager *other) | |
Definition at line 57 of file SoundManager.h.
CSoundManager::CSoundManager | ( | ) |
Definition at line 258 of file SoundManager.cpp.
|
virtual |
Definition at line 304 of file SoundManager.cpp.
|
inlineprivate |
Definition at line 167 of file SoundManager.h.
void CSoundManager::AddPlayListItem | ( | const VfsPath & | itemPath | ) |
Definition at line 475 of file SoundManager.cpp.
|
static |
Definition at line 239 of file SoundManager.cpp.
|
static |
Definition at line 234 of file SoundManager.cpp.
|
protected |
Definition at line 339 of file SoundManager.cpp.
void CSoundManager::ClearPlayListItems | ( | ) |
Definition at line 480 of file SoundManager.cpp.
|
static |
unsigned long CSoundManager::Count | ( | ) |
|
static |
ALuint CSoundManager::GetALSource | ( | ISoundItem * | anItem | ) |
Definition at line 440 of file SoundManager.cpp.
long CSoundManager::GetBufferCount | ( | ) |
Definition at line 466 of file SoundManager.cpp.
long CSoundManager::GetBufferSize | ( | ) |
Definition at line 470 of file SoundManager.cpp.
ISoundItem* CSoundManager::GetSoundItem | ( | unsigned long | itemRow | ) |
|
virtual |
Implements ISoundManager.
Definition at line 586 of file SoundManager.cpp.
|
virtual |
Implements ISoundManager.
Definition at line 402 of file SoundManager.cpp.
|
protected |
Definition at line 644 of file SoundManager.cpp.
ISoundItem * CSoundManager::ItemForData | ( | CSoundData * | itemData | ) |
Definition at line 557 of file SoundManager.cpp.
ISoundItem * CSoundManager::ItemForEntity | ( | entity_id_t | source, |
CSoundData * | sndData | ||
) |
Definition at line 633 of file SoundManager.cpp.
ISoundItem* CSoundManager::ItemFromData | ( | CSoundData * | itemData | ) |
ISoundItem* CSoundManager::ItemFromOgg | ( | VfsPath & | fname | ) |
ISoundItem* CSoundManager::ItemFromWAV | ( | VfsPath & | fname | ) |
ISoundItem * CSoundManager::LoadItem | ( | const VfsPath & | itemPath | ) |
Definition at line 541 of file SoundManager.cpp.
|
private |
|
virtual |
Implements ISoundManager.
Definition at line 743 of file SoundManager.cpp.
void CSoundManager::PauseAction | ( | bool | pauseIt | ) |
Definition at line 775 of file SoundManager.cpp.
void CSoundManager::PauseAmbient | ( | bool | pauseIt | ) |
Definition at line 765 of file SoundManager.cpp.
void CSoundManager::PauseMusic | ( | bool | pauseIt | ) |
Definition at line 750 of file SoundManager.cpp.
|
virtual |
Implements ISoundManager.
Definition at line 717 of file SoundManager.cpp.
|
virtual |
Implements ISoundManager.
Definition at line 682 of file SoundManager.cpp.
|
virtual |
Implements ISoundManager.
Definition at line 708 of file SoundManager.cpp.
|
virtual |
Implements ISoundManager.
Definition at line 726 of file SoundManager.cpp.
void CSoundManager::PlayGroupItem | ( | ISoundItem * | anItem, |
ALfloat | groupGain | ||
) |
Definition at line 657 of file SoundManager.cpp.
void CSoundManager::ReleaseALSource | ( | ALuint | theSource | ) |
Definition at line 454 of file SoundManager.cpp.
Definition at line 253 of file SoundManager.cpp.
Definition at line 246 of file SoundManager.cpp.
|
static |
|
protectedvirtual |
Implements ISoundManager.
Definition at line 531 of file SoundManager.cpp.
|
protectedvirtual |
Implements ISoundManager.
Definition at line 527 of file SoundManager.cpp.
void CSoundManager::SetAmbientItem | ( | ISoundItem * | anItem | ) |
Definition at line 817 of file SoundManager.cpp.
void CSoundManager::SetDistressThroughError | ( | ) |
Definition at line 428 of file SoundManager.cpp.
void CSoundManager::SetDistressThroughShortage | ( | ) |
Definition at line 419 of file SoundManager.cpp.
|
static |
|
protectedvirtual |
Implements ISoundManager.
Definition at line 513 of file SoundManager.cpp.
void CSoundManager::SetMemoryUsage | ( | long | bufferSize, |
int | bufferCount | ||
) |
void CSoundManager::SetMusicEnabled | ( | bool | isEnabled | ) |
Definition at line 669 of file SoundManager.cpp.
|
protectedvirtual |
Implements ISoundManager.
Definition at line 523 of file SoundManager.cpp.
|
protected |
Definition at line 780 of file SoundManager.cpp.
void CSoundManager::setSoundEnabled | ( | bool | enabled | ) |
|
protectedvirtual |
Implements ISoundManager.
Definition at line 535 of file SoundManager.cpp.
void CSoundManager::StartPlayList | ( | bool | doLoop | ) |
Definition at line 492 of file SoundManager.cpp.
|
protected |
Definition at line 76 of file SoundManager.h.
|
protected |
Definition at line 86 of file SoundManager.h.
|
protected |
Definition at line 63 of file SoundManager.h.
|
protected |
Definition at line 95 of file SoundManager.h.
|
protected |
Definition at line 75 of file SoundManager.h.
|
protected |
Definition at line 85 of file SoundManager.h.
|
protected |
Definition at line 80 of file SoundManager.h.
|
protected |
Definition at line 79 of file SoundManager.h.
|
protected |
Definition at line 64 of file SoundManager.h.
|
protected |
Definition at line 67 of file SoundManager.h.
|
protected |
Definition at line 66 of file SoundManager.h.
|
protected |
Definition at line 65 of file SoundManager.h.
|
protected |
Definition at line 92 of file SoundManager.h.
|
protected |
Definition at line 69 of file SoundManager.h.
|
protected |
Definition at line 93 of file SoundManager.h.
|
protected |
Definition at line 78 of file SoundManager.h.
|
protected |
Definition at line 73 of file SoundManager.h.
|
protected |
Definition at line 89 of file SoundManager.h.
|
protected |
Definition at line 81 of file SoundManager.h.
|
protected |
Definition at line 74 of file SoundManager.h.
|
protected |
Definition at line 84 of file SoundManager.h.
|
protected |
Definition at line 88 of file SoundManager.h.
|
protected |
Definition at line 91 of file SoundManager.h.
|
protected |
Definition at line 70 of file SoundManager.h.
|
protected |
Definition at line 87 of file SoundManager.h.
|
protected |
Definition at line 82 of file SoundManager.h.
|
protected |
Definition at line 71 of file SoundManager.h.
|
protected |
Definition at line 77 of file SoundManager.h.
|
protected |
Definition at line 68 of file SoundManager.h.