summaryrefslogtreecommitdiff
path: root/include/game.h
diff options
context:
space:
mode:
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); }
+ };
}
}