summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-10-23 05:44:25 +0200
committerTreeki <treeki@gmail.com>2012-10-23 05:45:50 +0200
commit20aa16033547f5a1f0b5032f0c17acf32cbbc7f5 (patch)
tree8a6056465b7245aa73941ba51bce8e068b20ad23 /include
parenteea011371eee3bd9e6d9660b5f43b80b1a0c336d (diff)
downloadkamek-20aa16033547f5a1f0b5032f0c17acf32cbbc7f5.tar.gz
kamek-20aa16033547f5a1f0b5032f0c17acf32cbbc7f5.zip
musics and things
Diffstat (limited to '')
-rwxr-xr-xinclude/game.h14
1 files changed, 13 insertions, 1 deletions
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); }
+ };
}
}