Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include <SoundManager.h>
Public Member Functions | |
CSoundManager (ALCdevice *device) | |
virtual | ~CSoundManager () |
void | StartWorker () |
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 () |
CStr8 | GetSoundCardNames () const |
CStr8 | GetOpenALVersion () const |
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, const 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 | RunHardwareDetection () |
void | SetAmbientItem (ISoundItem *anItem) |
void | SetMasterGain (float gain) |
void | SetMusicGain (float gain) |
void | SetAmbientGain (float gain) |
void | SetActionGain (float gain) |
void | SetUIGain (float gain) |
Public Member Functions inherited from ISoundManager | |
virtual | ~ISoundManager () |
virtual void | StartWorker ()=0 |
virtual void | IdleTask ()=0 |
virtual void | Pause (bool pauseIt)=0 |
virtual void | PauseMusic (bool pauseIt)=0 |
virtual void | PauseAmbient (bool pauseIt)=0 |
virtual void | PauseAction (bool pauseIt)=0 |
virtual void | SetMasterGain (float gain)=0 |
virtual void | SetMusicGain (float gain)=0 |
virtual void | SetAmbientGain (float gain)=0 |
virtual void | SetActionGain (float gain)=0 |
virtual void | SetUIGain (float gain)=0 |
virtual void | RunHardwareDetection ()=0 |
virtual CStr8 | GetSoundCardNames () const =0 |
virtual CStr8 | GetOpenALVersion () const =0 |
virtual void | PlayAsUI (const VfsPath &itemPath, bool looping)=0 |
virtual void | PlayAsMusic (const VfsPath &itemPath, bool looping)=0 |
virtual void | PlayAsAmbient (const VfsPath &itemPath, bool looping)=0 |
virtual void | PlayAsGroup (const VfsPath &groupPath, const CVector3D &sourcePos, entity_id_t source, bool ownedSound)=0 |
virtual bool | InDistress ()=0 |
Static Public Member Functions | |
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 Public Member Functions inherited from ISoundManager | |
static void | CreateSoundManager () |
static void | SetEnabled (bool doEnable) |
static void | CloseGame () |
Protected Member Functions | |
void | InitListener () |
Status | AlcInit () |
void | SetMusicItem (ISoundItem *anItem) |
Protected Attributes | |
ALCcontext * | m_Context |
ALCdevice * | m_Device |
ALSourceHolder * | m_ALSourceBuffer |
ISoundItem * | m_CurrentTune |
ISoundItem * | m_CurrentEnvirons |
CSoundManagerWorker * | m_Worker |
std::mutex | 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_SoundEnabled |
bool | m_MusicEnabled |
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 |
CStr8 | m_SoundCardNames |
CStr8 | m_OpenALVersion |
Private Member Functions | |
NONCOPYABLE (CSoundManager) | |
CSoundManager (CSoundManager *other) | |
CSoundManager::CSoundManager | ( | ALCdevice * | device | ) |
|
virtual |
|
inlineprivate |
void CSoundManager::AddPlayListItem | ( | const VfsPath & | itemPath | ) |
|
static |
|
static |
|
protected |
void CSoundManager::ClearPlayListItems | ( | ) |
|
static |
unsigned long CSoundManager::Count | ( | ) |
|
static |
ALuint CSoundManager::GetALSource | ( | ISoundItem * | anItem | ) |
long CSoundManager::GetBufferCount | ( | ) |
long CSoundManager::GetBufferSize | ( | ) |
|
virtual |
Implements ISoundManager.
|
virtual |
Implements ISoundManager.
ISoundItem * CSoundManager::GetSoundItem | ( | unsigned long | itemRow | ) |
|
virtual |
Implements ISoundManager.
|
virtual |
Implements ISoundManager.
|
protected |
ISoundItem * CSoundManager::ItemForData | ( | CSoundData * | itemData | ) |
ISoundItem * CSoundManager::ItemForEntity | ( | entity_id_t | source, |
CSoundData * | sndData | ||
) |
ISoundItem * CSoundManager::ItemFromData | ( | CSoundData * | itemData | ) |
ISoundItem * CSoundManager::ItemFromOgg | ( | VfsPath & | fname | ) |
ISoundItem * CSoundManager::ItemFromWAV | ( | VfsPath & | fname | ) |
ISoundItem * CSoundManager::LoadItem | ( | const VfsPath & | itemPath | ) |
|
private |
|
virtual |
Implements ISoundManager.
|
virtual |
Implements ISoundManager.
|
virtual |
Implements ISoundManager.
|
virtual |
Implements ISoundManager.
|
virtual |
Implements ISoundManager.
|
virtual |
Implements ISoundManager.
|
virtual |
Implements ISoundManager.
|
virtual |
Implements ISoundManager.
void CSoundManager::PlayGroupItem | ( | ISoundItem * | anItem, |
ALfloat | groupGain | ||
) |
void CSoundManager::ReleaseALSource | ( | ALuint | theSource | ) |
|
virtual |
Implements ISoundManager.
|
virtual |
Implements ISoundManager.
|
virtual |
Implements ISoundManager.
void CSoundManager::SetAmbientItem | ( | ISoundItem * | anItem | ) |
void CSoundManager::SetDistressThroughError | ( | ) |
void CSoundManager::SetDistressThroughShortage | ( | ) |
|
static |
|
virtual |
Implements ISoundManager.
void CSoundManager::SetMemoryUsage | ( | long | bufferSize, |
int | bufferCount | ||
) |
void CSoundManager::SetMusicEnabled | ( | bool | isEnabled | ) |
|
virtual |
Implements ISoundManager.
|
protected |
void CSoundManager::SetSoundEnabled | ( | bool | enabled | ) |
|
virtual |
Implements ISoundManager.
void CSoundManager::StartPlayList | ( | bool | doLoop | ) |
|
virtual |
Implements ISoundManager.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |