18#ifndef INCLUDED_SOUNDMANAGER_H
19#define INCLUDED_SOUNDMANAGER_H
40#define AL_CHECK CSoundManager::al_check(__func__, __LINE__)
51typedef std::map<entity_id_t, ISoundItem*>
ItemsMap;
119 static void al_ReportError(ALenum err,
const char* caller,
int line);
120 static void al_check(
const char* caller,
int line);
153 void Pause(
bool pauseIt);
New profiler (complementing the older CProfileManager)
std::map< std::wstring, CSoundGroup * > SoundGroupMap
Definition: SoundManager.h:52
std::vector< ISoundItem * > ItemsList
Definition: SoundManager.h:50
std::vector< VfsPath > PlayList
Definition: SoundManager.h:49
std::map< entity_id_t, ISoundItem * > ItemsMap
Definition: SoundManager.h:51
Definition: SoundData.h:35
Definition: SoundManager.cpp:45
Definition: SoundManager.h:58
ISoundItem * m_CurrentEnvirons
Definition: SoundManager.h:67
void SetMusicEnabled(bool isEnabled)
Definition: SoundManager.cpp:643
void SetMasterGain(float gain)
Definition: SoundManager.cpp:485
CSoundManager(CSoundManager *other)
Definition: SoundManager.h:174
void SetSoundEnabled(bool enabled)
void SetDistressThroughShortage()
Definition: SoundManager.cpp:389
ISoundItem * ItemFromWAV(VfsPath &fname)
bool m_ActionPaused
Definition: SoundManager.h:86
float m_AmbientGain
Definition: SoundManager.h:75
std::mutex m_DistressMutex
Definition: SoundManager.h:69
void ClearPlayListItems()
Definition: SoundManager.cpp:451
Status AlcInit()
Definition: SoundManager.cpp:311
ISoundItem * GetSoundItem(unsigned long itemRow)
void SetAmbientGain(float gain)
Definition: SoundManager.cpp:502
ISoundItem * ItemForData(CSoundData *itemData)
Definition: SoundManager.cpp:532
CStr8 GetOpenALVersion() const
Definition: SoundManager.cpp:857
long m_DistressErrCount
Definition: SoundManager.h:92
void SetAmbientItem(ISoundItem *anItem)
Definition: SoundManager.cpp:799
void StartWorker()
Definition: SoundManager.cpp:305
int m_BufferCount
Definition: SoundManager.h:80
CSoundManager(ALCdevice *device)
Definition: SoundManager.cpp:237
void AddPlayListItem(const VfsPath &itemPath)
Definition: SoundManager.cpp:445
void PlayAsGroup(const VfsPath &groupPath, const CVector3D &sourcePos, entity_id_t source, bool ownedSound)
Definition: SoundManager.cpp:653
ISoundItem * ItemFromData(CSoundData *itemData)
void PlayAsUI(const VfsPath &itemPath, bool looping)
Definition: SoundManager.cpp:703
bool InDistress()
Definition: SoundManager.cpp:372
ALCdevice * m_Device
Definition: SoundManager.h:64
bool m_PlayingPlaylist
Definition: SoundManager.h:88
CSoundManagerWorker * m_Worker
Definition: SoundManager.h:68
void SetUIGain(float gain)
Definition: SoundManager.cpp:510
Status ReloadChangedFiles(const VfsPath &path)
Definition: SoundManager.cpp:226
ALSourceHolder * m_ALSourceBuffer
Definition: SoundManager.h:65
ALCcontext * m_Context
Definition: SoundManager.h:63
void Pause(bool pauseIt)
Definition: SoundManager.cpp:722
NONCOPYABLE(CSoundManager)
long GetBufferSize()
Definition: SoundManager.cpp:440
void PlayAsAmbient(const VfsPath &itemPath, bool looping)
Definition: SoundManager.cpp:691
bool m_AmbientPaused
Definition: SoundManager.h:85
void InitListener()
Definition: SoundManager.cpp:617
virtual ~CSoundManager()
Definition: SoundManager.cpp:272
bool m_MusicPaused
Definition: SoundManager.h:84
ISoundItem * LoadItem(const VfsPath &itemPath)
Definition: SoundManager.cpp:516
long m_BufferSize
Definition: SoundManager.h:79
PlayList * m_PlayListItems
Definition: SoundManager.h:70
bool m_LoopingPlaylist
Definition: SoundManager.h:89
SoundGroupMap m_SoundGroups
Definition: SoundManager.h:71
long m_PlaylistGap
Definition: SoundManager.h:91
void IdleTask()
Definition: SoundManager.cpp:560
bool m_SoundEnabled
Definition: SoundManager.h:81
void SetMusicGain(float gain)
Definition: SoundManager.cpp:495
CStr8 m_SoundCardNames
Definition: SoundManager.h:95
void StartPlayList(bool doLoop)
Definition: SoundManager.cpp:466
void PlayGroupItem(ISoundItem *anItem, ALfloat groupGain)
Definition: SoundManager.cpp:630
float m_MusicGain
Definition: SoundManager.h:74
ISoundItem * m_CurrentTune
Definition: SoundManager.h:66
bool m_RunningPlaylist
Definition: SoundManager.h:87
void ReleaseALSource(ALuint theSource)
Definition: SoundManager.cpp:424
ISoundItem * ItemFromOgg(VfsPath &fname)
void PlayAsMusic(const VfsPath &itemPath, bool looping)
Definition: SoundManager.cpp:679
bool m_MusicEnabled
Definition: SoundManager.h:82
void RunHardwareDetection()
Definition: SoundManager.cpp:824
ISoundItem * ItemForEntity(entity_id_t source, CSoundData *sndData)
Definition: SoundManager.cpp:606
static Status ReloadChangedFileCB(void *param, const VfsPath &path)
Definition: SoundManager.cpp:232
static void SetEnabled(bool doEnable)
void SetMemoryUsage(long bufferSize, int bufferCount)
ALuint GetALSource(ISoundItem *anItem)
Definition: SoundManager.cpp:410
void PauseMusic(bool pauseIt)
Definition: SoundManager.cpp:729
float m_UIGain
Definition: SoundManager.h:77
void SetDistressThroughError()
Definition: SoundManager.cpp:398
static void al_check(const char *caller, int line)
Definition: SoundManager.cpp:219
static void CreateSoundManager()
float m_Gain
Definition: SoundManager.h:73
static void al_ReportError(ALenum err, const char *caller, int line)
Definition: SoundManager.cpp:214
CStr8 m_OpenALVersion
Definition: SoundManager.h:96
void PauseAction(bool pauseIt)
Definition: SoundManager.cpp:754
void SetActionGain(float gain)
Definition: SoundManager.cpp:506
long m_DistressTime
Definition: SoundManager.h:93
CStr8 GetSoundCardNames() const
Definition: SoundManager.cpp:862
float m_ActionGain
Definition: SoundManager.h:76
bool m_Enabled
Definition: SoundManager.h:78
long GetBufferCount()
Definition: SoundManager.cpp:436
void SetMusicItem(ISoundItem *anItem)
Definition: SoundManager.cpp:759
void PauseAmbient(bool pauseIt)
Definition: SoundManager.cpp:744
Definition: Vector3D.h:31
Definition: ISoundItem.h:30
Definition: ISoundManager.h:29
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning.
Definition: code_annotation.h:40
u32 entity_id_t
Entity ID type.
Definition: Entity.h:29
i64 Status
Error handling system.
Definition: status.h:173
Definition: SoundManager.h:43
ALuint ALSource
Title of the column.
Definition: SoundManager.h:45
ISoundItem * SourceItem
Definition: SoundManager.h:46