Changeset View
Changeset View
Standalone View
Standalone View
source/soundmanager/ISoundManager.h
Show All 20 Lines | |||||
#include "lib/config2.h" | #include "lib/config2.h" | ||||
#include "lib/file/vfs/vfs_path.h" | #include "lib/file/vfs/vfs_path.h" | ||||
#include "simulation2/system/Entity.h" | #include "simulation2/system/Entity.h" | ||||
class CVector3D; | class CVector3D; | ||||
class ISoundManager | class ISoundManager | ||||
{ | { | ||||
private: | |||||
static ISoundManager* s_SoundManager; | |||||
vladislavbelov: Put it under the public section. | |||||
public: | public: | ||||
virtual ~ISoundManager() {}; | virtual ~ISoundManager() {}; | ||||
static void CreateSoundManager(); | static void CreateSoundManager(); | ||||
static void SetEnabled(bool doEnable); | static void SetEnabled(bool doEnable); | ||||
static ISoundManager* GetSoundManager(); | |||||
static bool IsCreated(); | |||||
static void CloseGame(); | static void CloseGame(); | ||||
virtual void StartWorker() = 0; | virtual void StartWorker() = 0; | ||||
virtual void IdleTask() = 0; | virtual void IdleTask() = 0; | ||||
virtual void Pause(bool pauseIt) = 0; | virtual void Pause(bool pauseIt) = 0; | ||||
virtual void SetMasterGain(float gain) = 0; | virtual void SetMasterGain(float gain) = 0; | ||||
virtual void SetMusicGain(float gain) = 0; | virtual void SetMusicGain(float gain) = 0; | ||||
virtual void SetAmbientGain(float gain) = 0; | virtual void SetAmbientGain(float gain) = 0; | ||||
virtual void SetActionGain(float gain) = 0; | virtual void SetActionGain(float gain) = 0; | ||||
virtual void SetUIGain(float gain) = 0; | virtual void SetUIGain(float gain) = 0; | ||||
virtual void PlayAsUI(const VfsPath& itemPath, bool looping) = 0; | virtual void PlayAsUI(const VfsPath& itemPath, bool looping) = 0; | ||||
virtual void PlayAsMusic(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 PlayAsAmbient(const VfsPath& itemPath, bool looping) = 0; | ||||
virtual void PlayAsGroup(const VfsPath& groupPath, const CVector3D& sourcePos, entity_id_t source, bool ownedSound) = 0; | virtual void PlayAsGroup(const VfsPath& groupPath, const CVector3D& sourcePos, entity_id_t source, bool ownedSound) = 0; | ||||
virtual bool InDistress() = 0; | virtual bool InDistress() = 0; | ||||
}; | }; | ||||
extern ISoundManager* g_SoundManager; | |||||
#endif // INCLUDED_ISOUNDMANAGER_H | #endif // INCLUDED_ISOUNDMANAGER_H | ||||
Wildfire Games · Phabricator
Put it under the public section.