18 #ifndef INCLUDED_SOUNDMANAGER_H
19 #define INCLUDED_SOUNDMANAGER_H
40 #define AL_CHECK CSoundManager::al_check(__func__, __LINE__);
51 typedef std::map<entity_id_t, ISoundItem*>
ItemsMap;
118 static void al_ReportError(ALenum err,
const char* caller,
int line);
119 static void al_check(
const char* caller,
int line);
132 unsigned long Count();
150 void Pause(
bool pauseIt);
170 #else // !CONFIG2_AUDIO
174 #endif // !CONFIG2_AUDIO
176 #endif // INCLUDED_SOUNDMANAGER_H
ISoundItem * ItemForData(CSoundData *itemData)
static void ScriptingInit()
void PlayGroupItem(ISoundItem *anItem, ALfloat groupGain)
ALuint ALSource
Title of the column.
void SetDistressThroughShortage()
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning. ...
SoundGroupMap m_SoundGroups
std::vector< ISoundItem * > ItemsList
static void SetEnabled(bool doEnable)
ISoundItem * ItemFromOgg(VfsPath &fname)
void ClearPlayListItems()
PlayList * m_PlayListItems
void SetMusicGain(float gain)
void setSoundEnabled(bool enabled)
std::map< entity_id_t, ISoundItem * > ItemsMap
void PlayAsUI(const VfsPath &itemPath, bool looping)
ALuint GetALSource(ISoundItem *anItem)
ISoundItem * m_CurrentEnvirons
void SetAmbientGain(float gain)
A non-recursive mutual exclusion lock.
CSoundManager(CSoundManager *other)
void SetMusicEnabled(bool isEnabled)
void PauseMusic(bool pauseIt)
CSoundManagerWorker * m_Worker
static Status ReloadChangedFileCB(void *param, const VfsPath &path)
void SetDistressThroughError()
void PlayAsGroup(const VfsPath &groupPath, CVector3D sourcePos, entity_id_t source, bool ownedSound)
New profiler (complementing the older CProfileManager)
void SetAmbientItem(ISoundItem *anItem)
void SetMusicItem(ISoundItem *anItem)
std::vector< VfsPath > PlayList
void SetMemoryUsage(long bufferSize, int bufferCount)
i64 Status
Error handling system.
void StartPlayList(bool doLoop)
static void al_check(const char *caller, int line)
void SetMasterGain(float gain)
void PauseAction(bool pauseIt)
ISoundItem * ItemForEntity(entity_id_t source, CSoundData *sndData)
void PauseAmbient(bool pauseIt)
void PlayAsMusic(const VfsPath &itemPath, bool looping)
static void al_ReportError(ALenum err, const char *caller, int line)
ISoundItem * m_CurrentTune
ISoundItem * ItemFromWAV(VfsPath &fname)
void PlayAsAmbient(const VfsPath &itemPath, bool looping)
static void CreateSoundManager()
ISoundItem * LoadItem(const VfsPath &itemPath)
std::map< std::wstring, CSoundGroup * > SoundGroupMap
void AddPlayListItem(const VfsPath &itemPath)
void ReleaseALSource(ALuint theSource)
NONCOPYABLE(CSoundManager)
ISoundItem * GetSoundItem(unsigned long itemRow)
void SetUIGain(float gain)
Status ReloadChangedFiles(const VfsPath &path)
u32 entity_id_t
Entity ID type.
ISoundItem * ItemFromData(CSoundData *itemData)
ALSourceHolder * m_ALSourceBuffer
void SetActionGain(float gain)