25 #ifndef __I6ENGINE_API_AUDIOCONFIG_H__
26 #define __I6ENGINE_API_AUDIOCONFIG_H__
39 #define INVALID_SOUND UINT64_MAX
64 Audio_Node_Create(int64_t c,
const std::string & f,
bool l,
double m,
const Vec3 & p,
const Vec3 & d,
bool ca,
const std::string & cat) :
GameMessageStruct(c, -1), file(f), looping(l), maxDist(m), position(p), direction(d), cacheable(ca), category(cat) {
119 Audio_PlaySound_Create(SoundHandle h,
const std::string & f,
double m,
const Vec3 & p,
const Vec3 & d,
bool c,
const std::string & cat) :
GameMessageStruct(), handle(h), file(f), maxDist(m), position(p), direction(d), cacheable(c), category(cat) {
138 Audio_PlaySoundWithCallback_Create(SoundHandle h,
const std::string & f,
double m,
const Vec3 & p,
const Vec3 & d,
bool c,
const std::string & cat,
const std::function<
void(
bool)> & cb) :
GameMessageStruct(), handle(h), file(f), maxDist(m), position(p), direction(d), cacheable(c), category(cat), callback(cb) {
i6e::api::audio::Audio_Node_Create Audio_Node_Create
creates a new audio node
i6e::api::audio::Audio_Listener_Update Audio_Listener_Update
updates sound listener
Audio_StopSound_Delete * copy()
Copy method returning an exact copy of itself.
Class describing a 3d rotation.
Audio_PlaySoundWithCallback_Create * copy()
Copy method returning an exact copy of itself.
Audio_Node_Delete(int64_t c)
Audio_StopSound_Delete(SoundHandle h)
Audio_Position_Update * copy()
Copy method returning an exact copy of itself.
Audio_PlaySound_Create(SoundHandle h, const std::string &f, double m, const Vec3 &p, const Vec3 &d, bool c, const std::string &cat)
Audio_Node_Delete * copy()
Copy method returning an exact copy of itself.
Implements 3-dimensional vectors.
plays given sound with callback
Audio_PlaySoundWithCallback_Create(SoundHandle h, const std::string &f, double m, const Vec3 &p, const Vec3 &d, bool c, const std::string &cat, const std::function< void(bool)> &cb)
i6e::api::audio::Audio_PlaySoundWithCallback_Create Audio_PlaySoundWithCallback_Create
plays given sound with callback
i6e::api::audio::Audio_Position_Update Audio_Position_Update
updates nodes position
Audio_Node_Create * copy()
Copy method returning an exact copy of itself.
Audio_Listener_Update(const Vec3 &p, const Quaternion &r, const Vec3 &v)
std::function< void(bool)> callback
i6e::api::audio::Audio_Node_Delete Audio_Node_Delete
deletes an audio node
Audio_Listener_Update * copy()
Copy method returning an exact copy of itself.
Audio_Node_Create(int64_t c, const std::string &f, bool l, double m, const Vec3 &p, const Vec3 &d, bool ca, const std::string &cat)
Audio_PlaySound_Create * copy()
Copy method returning an exact copy of itself.
Audio_Position_Update(int64_t c, const Vec3 &p)
i6e::api::audio::Audio_StopSound_Delete Audio_StopSound_Delete
stops given sound
i6e::api::audio::Audio_PlaySound_Create Audio_PlaySound_Create
plays given sound once