18 #ifndef INCLUDED_SOUNDMANAGER_H 19 #define INCLUDED_SOUNDMANAGER_H 38 #define AL_CHECK CSoundManager::al_check(__func__, __LINE__) 49 typedef std::map<entity_id_t, ISoundItem*>
ItemsMap;
106 void ClearPlayListItems();
107 void StartPlayList(
bool doLoop);
108 void AddPlayListItem(
const VfsPath& itemPath);
110 static void CreateSoundManager();
111 static void SetEnabled(
bool doEnable);
114 static void CloseGame();
116 static void al_ReportError(ALenum err,
const char* caller,
int line);
117 static void al_check(
const char* caller,
int line);
119 void SetMusicEnabled(
bool isEnabled);
120 void SetSoundEnabled(
bool enabled);
123 void ReleaseALSource(ALuint theSource);
129 ISoundItem* GetSoundItem(
unsigned long itemRow);
130 unsigned long Count();
133 void SetMemoryUsage(
long bufferSize,
int bufferCount);
134 long GetBufferCount();
135 long GetBufferSize();
137 void PlayAsMusic(
const VfsPath& itemPath,
bool looping);
138 void PlayAsAmbient(
const VfsPath& itemPath,
bool looping);
139 void PlayAsUI(
const VfsPath& itemPath,
bool looping);
142 void PlayGroupItem(
ISoundItem* anItem, ALfloat groupGain);
145 void SetDistressThroughShortage();
146 void SetDistressThroughError();
148 void Pause(
bool pauseIt);
149 void PauseMusic(
bool pauseIt);
150 void PauseAmbient(
bool pauseIt);
151 void PauseAction(
bool pauseIt);
169 #else // !CONFIG2_AUDIO 173 #endif // !CONFIG2_AUDIO 175 #endif // INCLUDED_SOUNDMANAGER_H #define NONCOPYABLE(className)
Indicates that a class is noncopyable (usually due to const or reference members, or because the clas...
Definition: code_annotation.h:217
ALuint ALSource
Title of the column.
Definition: SoundManager.h:43
bool m_LoopingPlaylist
Definition: SoundManager.h:87
bool m_Enabled
Definition: SoundManager.h:76
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning. ...
Definition: code_annotation.h:38
Definition: SoundManager.cpp:41
float m_UIGain
Definition: SoundManager.h:75
void SetMusicGain(ScriptInterface::CxPrivate *pCxPrivate, float gain)
Definition: JSInterface_Sound.cpp:94
float m_AmbientGain
Definition: SoundManager.h:73
SoundGroupMap m_SoundGroups
Definition: SoundManager.h:69
std::vector< ISoundItem * > ItemsList
Definition: SoundManager.h:48
bool m_SoundEnabled
Definition: SoundManager.h:79
Definition: SoundManager.h:55
bool m_MusicPaused
Definition: SoundManager.h:82
ALCdevice * m_Device
Definition: SoundManager.h:62
ALCcontext * m_Context
Definition: SoundManager.h:61
PlayList * m_PlayListItems
Definition: SoundManager.h:68
Definition: ISoundItem.h:29
CMutex m_DistressMutex
Definition: SoundManager.h:67
Definition: Vector3D.h:28
std::map< entity_id_t, ISoundItem * > ItemsMap
Definition: SoundManager.h:49
long m_DistressErrCount
Definition: SoundManager.h:90
void SetUIGain(ScriptInterface::CxPrivate *pCxPrivate, float gain)
Definition: JSInterface_Sound.cpp:112
ISoundItem * m_CurrentEnvirons
Definition: SoundManager.h:65
A non-recursive mutual exclusion lock.
Definition: ThreadUtil.h:45
CSoundManager(CSoundManager *other)
Definition: SoundManager.h:166
long m_BufferSize
Definition: SoundManager.h:77
CSoundManagerWorker * m_Worker
Definition: SoundManager.h:66
void SetAmbientGain(ScriptInterface::CxPrivate *pCxPrivate, float gain)
Definition: JSInterface_Sound.cpp:100
Status ReloadChangedFiles()
poll for directory change notifications and reload all affected files.
Definition: Filesystem.cpp:75
bool m_RunningPlaylist
Definition: SoundManager.h:85
Definition: SoundData.h:34
New profiler (complementing the older CProfileManager)
Definition: SoundManager.h:40
int m_BufferCount
Definition: SoundManager.h:78
ISoundItem * SourceItem
Definition: SoundManager.h:44
std::vector< VfsPath > PlayList
Definition: SoundManager.h:47
bool m_MusicEnabled
Definition: SoundManager.h:80
long m_DistressTime
Definition: SoundManager.h:91
i64 Status
Error handling system.
Definition: status.h:171
Definition: ISoundManager.h:27
ISoundItem * m_CurrentTune
Definition: SoundManager.h:64
static Status ReloadChangedFileCB(void *param, const VfsPath &path)
Definition: ObjectManager.cpp:44
float m_MusicGain
Definition: SoundManager.h:72
long m_PlaylistGap
Definition: SoundManager.h:89
bool m_PlayingPlaylist
Definition: SoundManager.h:86
std::map< std::wstring, CSoundGroup * > SoundGroupMap
Definition: SoundManager.h:50
float m_ActionGain
Definition: SoundManager.h:74
void SetActionGain(ScriptInterface::CxPrivate *pCxPrivate, float gain)
Definition: JSInterface_Sound.cpp:106
u32 entity_id_t
Entity ID type.
Definition: Entity.h:23
void SetMasterGain(ScriptInterface::CxPrivate *pCxPrivate, float gain)
Definition: JSInterface_Sound.cpp:88
bool m_ActionPaused
Definition: SoundManager.h:84
bool m_AmbientPaused
Definition: SoundManager.h:83
ALSourceHolder * m_ALSourceBuffer
Definition: SoundManager.h:63
float m_Gain
Definition: SoundManager.h:71