diff options
author | Treeki <treeki@gmail.com> | 2013-05-22 21:18:35 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-05-22 21:18:35 +0200 |
commit | b8cd00c15b3e576921dc0b0da6cbe6b832baa722 (patch) | |
tree | df2fffa3db5b611b6799600d6b453c598d60b628 | |
parent | 7d7fd4eb64f562978dbc001bffb53482af747a0b (diff) | |
download | kamek-b8cd00c15b3e576921dc0b0da6cbe6b832baa722.tar.gz kamek-b8cd00c15b3e576921dc0b0da6cbe6b832baa722.zip |
added SetVolume
Diffstat (limited to '')
-rwxr-xr-x | include/game.h | 6 | ||||
-rw-r--r-- | kamek_pal.x | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/game.h b/include/game.h index 1eb7a17..d72e349 100755 --- a/include/game.h +++ b/include/game.h @@ -3816,6 +3816,7 @@ extern "C" void Pause__Q44nw4r3snd6detail10BasicSoundFbi(void *_this, bool pause extern "C" void Stop__Q44nw4r3snd6detail10BasicSoundFi(void *_this, int unk);
extern "C" void StrmSound_SetTrackVolume(void *_this, u32 mask, int count, float value);
extern "C" void SetPitch__Q44nw4r3snd6detail10BasicSoundFf(void *_this, float value);
+extern "C" void SetVolume__Q44nw4r3snd6detail10BasicSoundFfi(void *_this, float value, int count);
namespace nw4r {
namespace snd {
@@ -3832,6 +3833,8 @@ namespace nw4r { void SetPitch(float value) { SetPitch__Q44nw4r3snd6detail10BasicSoundFf(data, value); }
void Pause(bool pause, int count) { Pause__Q44nw4r3snd6detail10BasicSoundFbi(data, pause, count); }
+ void SetVolume(float value, int count) { SetVolume__Q44nw4r3snd6detail10BasicSoundFfi(data, pause, count); }
+
void *GetSound() const { return data; }
void DetachSound();
@@ -3971,7 +3974,8 @@ inline int Player_VF3D4(void *self) { VF_END;
}
-extern "C" void PlaySoundWithFunctionB4(void *spc, nw4r::snd::SoundHandle *handle, int id, int unk);
+extern "C" void PlaySoundWithFunctionB4(void *src, nw4r::snd::SoundHandle *handle, int id, int unk);
+extern "C" void CheckIfPlayingSound(void *src, int id);
extern void *SoundRelatedClass;
void GetPosForLayoutEffect(VEC3 *pos, bool quack);
diff --git a/kamek_pal.x b/kamek_pal.x index 5f5eeef..55a94ce 100644 --- a/kamek_pal.x +++ b/kamek_pal.x @@ -127,6 +127,7 @@ SECTIONS { Pause__Q44nw4r3snd6detail10BasicSoundFbi = 0x80266580; Stop__Q44nw4r3snd6detail10BasicSoundFi = 0x80266390; SetPitch__Q44nw4r3snd6detail10BasicSoundFf = 0x802675F0; + SetVolume__Q44nw4r3snd6detail10BasicSoundFfi = 0x80267560; StrmSound_SetTrackVolume = 0x8027F9D0; DontShowPreGame = 0x8042A490; |