70 virtual int LoadOpusFromMem(
const void *pData,
unsigned DataSize,
bool ForceLoad =
false) = 0;
71 virtual int LoadWVFromMem(
const void *pData,
unsigned DataSize,
bool ForceLoad =
false) = 0;
78 virtual void SetChannel(
int ChannelId,
float Volume,
float Panning) = 0;
91 virtual void Pause(
int SampleId) = 0;
92 virtual void Stop(
int SampleId) = 0;
98 virtual void Mix(
short *pFinalOut,
unsigned Frames) = 0;
virtual void Shutdown() override=0
CVoiceHandle()
Definition: sound.h:54
int m_Age
Definition: sound.h:51
int Id() const
Definition: sound.h:60
int Age() const
Definition: sound.h:61
bool operator==(const CVoiceHandle &Other) const
Definition: sound.h:63
int m_Id
Definition: sound.h:50
bool IsValid() const
Definition: sound.h:59
virtual void UnloadSample(int SampleId)=0
virtual CVoiceHandle PlayAt(int ChannelId, int SampleId, int Flags, float Volume, vec2 Position)=0
virtual int LoadWVFromMem(const void *pData, unsigned DataSize, bool ForceLoad=false)=0
virtual void SetVoiceFalloff(CVoiceHandle Voice, float Falloff)=0
virtual void SetVoiceVolume(CVoiceHandle Voice, float Volume)=0
virtual void Pause(int SampleId)=0
virtual void UnpauseAudioDevice()=0
virtual void SetVoiceTimeOffset(CVoiceHandle Voice, float TimeOffset)=0
CVoiceHandle CreateVoiceHandle(int Index, int Age)
Definition: sound.h:105
@ FLAG_LOOP
Definition: sound.h:17
@ FLAG_POS
Definition: sound.h:18
@ FLAG_NO_PANNING
Definition: sound.h:19
@ FLAG_PREVIEW
Definition: sound.h:20
@ FLAG_ALL
Definition: sound.h:21
virtual bool IsPlaying(int SampleId)=0
virtual void Mix(short *pFinalOut, unsigned Frames)=0
virtual int LoadWV(const char *pFilename, int StorageType=IStorage::TYPE_ALL)=0
virtual int MixingRate() const =0
virtual void SetVoiceRectangle(CVoiceHandle Voice, float Width, float Height)=0
virtual CVoiceHandle Play(int ChannelId, int SampleId, int Flags, float Volume)=0
virtual void SetVoicePosition(CVoiceHandle Voice, vec2 Position)=0
@ SHAPE_RECTANGLE
Definition: sound.h:27
@ SHAPE_CIRCLE
Definition: sound.h:26
virtual int LoadOpusFromMem(const void *pData, unsigned DataSize, bool ForceLoad=false)=0
virtual void StopVoice(CVoiceHandle Voice)=0
virtual int LoadOpus(const char *pFilename, int StorageType=IStorage::TYPE_ALL)=0
virtual void Stop(int SampleId)=0
virtual void SetSampleCurrentTime(int SampleId, float Time)=0
virtual void SetChannel(int ChannelId, float Volume, float Panning)=0
virtual float GetSampleTotalTime(int SampleId)=0
virtual bool IsSoundEnabled()=0
virtual float GetSampleCurrentTime(int SampleId)=0
virtual void SetListenerPosition(vec2 Position)=0
virtual void SetVoiceCircle(CVoiceHandle Voice, float Radius)=0
virtual void PauseAudioDevice()=0
@ TYPE_ALL
Definition: storage.h:26
IEngineSound * CreateEngineSound()
Definition: sound.cpp:984
#define MACRO_INTERFACE(Name)
Definition: kernel.h:25
int m_SampleId
Definition: sound.h:33
float m_Radius
Definition: sound.h:38
float m_Width
Definition: sound.h:43
float m_Height
Definition: sound.h:44