From 20aa16033547f5a1f0b5032f0c17acf32cbbc7f5 Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 23 Oct 2012 05:44:25 +0200 Subject: musics and things --- include/game.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/game.h b/include/game.h index 2e49ac4..0cbc0c3 100755 --- a/include/game.h +++ b/include/game.h @@ -3368,17 +3368,29 @@ bool FreeBreff(int efNum); bool FreeBreft(int efNum); +// a bad hack +extern "C" void Stop__Q44nw4r3snd6detail10BasicSoundFi(void *_this, int unk); +extern "C" void StrmSound_SetTrackVolume(void *_this, u32 mask, int count, float value); + namespace nw4r { namespace snd { class SoundHandle { - private: + protected: void *data; public: SoundHandle() { data = 0; } ~SoundHandle() { DetachSound(); } + bool Exists() { return (data != 0); } + void Stop(int unk) { Stop__Q44nw4r3snd6detail10BasicSoundFi(data, unk); } + void DetachSound(); }; + + class StrmSoundHandle : public SoundHandle { + public: + void SetTrackVolume(u32 mask, int count, float value) { StrmSound_SetTrackVolume(data, mask, count, value); } + }; } } -- cgit v1.2.3