20 #ifndef INC_C4SoundInstance
21 #define INC_C4SoundInstance
42 bool Load(
const char *szFileName,
C4Group &hGroup,
const char *namespace_prefix);
43 bool Load(
BYTE *pData,
size_t iDataLen,
bool fRaw=
false);
97 void SetVolumeByPos(int32_t x, int32_t y, int32_t relative_volume = 100);
100 bool Inside(int32_t iX, int32_t iY, int32_t iRad);
struct Mix_Chunk * C4SoundHandle
const int32_t C4MaxSoundName
void RemoveInst(C4SoundInstance *pInst)
bool Load(const char *szFileName, C4Group &hGroup, const char *namespace_prefix)
const char * GetFullName() const
int32_t GetStartedInstanceCount()
C4SoundInstance * New(bool fLoop=false, int32_t iVolume=100, C4Object *pObj=nullptr, int32_t iCustomFalloffDistance=0, int32_t iPitch=0, C4SoundModifier *modifier=nullptr)
void ClearPointers(C4Object *pObj)
C4SoundInstance * GetInstance(C4Object *pObj)
char Name[C4MaxSoundName+1]
void AddInst(C4SoundInstance *pInst)
C4SoundInstance * FirstInst
void SetVolume(int32_t inVolume)
void SetVolumeByPos(int32_t x, int32_t y, int32_t relative_volume=100)
C4Object * getObj() const
void SetPitch(int32_t inPitch)
C4SoundModifier * GetModifier() const
void SetObj(C4Object *pnObj)
bool Create(C4SoundEffect *pEffect, bool fLoop=false, int32_t iVolume=100, C4Object *pObj=nullptr, int32_t iNearInstanceMax=0, int32_t iFalloffDistance=0, int32_t inPitch=0, C4SoundModifier *modifier=nullptr)
void SetPan(int32_t inPan)
C4SoundModifier * modifier
C4TimeMilliseconds tStarted
void SetModifier(C4SoundModifier *new_modifier, bool is_global)
void ClearPointers(C4Object *pObj)
void SetPlayer(int32_t new_player)
bool Inside(int32_t iX, int32_t iY, int32_t iRad)