31 std::set<std::string> &dst_paths,
32 std::set<std::string> &dst_datas) = 0;
44 const std::string &name,
const std::string &filepath) = 0;
46 const std::string &name,
const std::string &filedata) = 0;
49 const v3f &pos,
const v3f &vel,
const v3f &at,
const v3f &up) = 0;
54 virtual int playSound(
const std::string &name,
bool loop,
float volume,
55 float fade = 0.0f,
float pitch = 1.0f) = 0;
56 virtual int playSoundAt(
const std::string &name,
bool loop,
float volume,
v3f pos,
57 float pitch = 1.0f) = 0;
63 virtual void step(
float dtime) = 0;
79 virtual bool loadSoundFile(
const std::string &name,
const std::string &filepath)
83 virtual bool loadSoundData(
const std::string &name,
const std::string &filedata)
91 int playSound(
const std::string &name,
bool loop,
float volume,
float fade,
bool soundExists(int sound)
Definition: sound.h:102
virtual bool loadSoundData(const std::string &name, const std::string &filedata)
Definition: sound.h:83
void step(float dtime)
Definition: sound.h:106
virtual bool loadSoundFile(const std::string &name, const std::string &filepath)
Definition: sound.h:79
void setListenerGain(float gain)
Definition: sound.h:90
bool updateSoundGain(int id, float gain)
Definition: sound.h:104
int playSound(const std::string &name, bool loop, float volume, float fade, float pitch)
Definition: sound.h:91
int playSoundAt(const std::string &name, bool loop, float volume, v3f pos, float pitch)
Definition: sound.h:96
void updateListener(const v3f &pos, const v3f &vel, const v3f &at, const v3f &up)
Definition: sound.h:87
void stopSound(int sound)
Definition: sound.h:101
void updateSoundPosition(int sound, v3f pos)
Definition: sound.h:103
void fadeSound(int sound, float step, float gain)
Definition: sound.h:107
float getSoundGain(int id)
Definition: sound.h:105
int playSound(const SimpleSoundSpec &spec, bool loop)
Definition: sound.h:66
virtual bool updateSoundGain(int id, float gain)=0
virtual int playSound(const std::string &name, bool loop, float volume, float fade=0.0f, float pitch=1.0f)=0
virtual bool soundExists(int sound)=0
virtual void step(float dtime)=0
virtual float getSoundGain(int id)=0
virtual ~ISoundManager()=default
virtual bool loadSoundData(const std::string &name, const std::string &filedata)=0
virtual void updateListener(const v3f &pos, const v3f &vel, const v3f &at, const v3f &up)=0
virtual void updateSoundPosition(int sound, v3f pos)=0
virtual void fadeSound(int sound, float step, float gain)=0
virtual int playSoundAt(const std::string &name, bool loop, float volume, v3f pos, float pitch=1.0f)=0
virtual void stopSound(int sound)=0
int playSoundAt(const SimpleSoundSpec &spec, bool loop, const v3f &pos)
Definition: sound.h:70
virtual void setListenerGain(float gain)=0
virtual bool loadSoundFile(const std::string &name, const std::string &filepath)=0
virtual void fetchSounds(const std::string &name, std::set< std::string > &dst_paths, std::set< std::string > &dst_datas)=0
DummySoundManager dummySoundManager
Definition: sound.cpp:23
core::vector3df v3f
Definition: irr_v3d.h:26
std::string name
Definition: sound.h:58
float fade
Definition: sound.h:60
float gain
Definition: sound.h:59
float pitch
Definition: sound.h:61