summaryrefslogtreecommitdiffstats
path: root/src/audio/SampleManager.cpp
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2019-07-02 20:35:47 +0200
committerFilip Gawin <filip.gawin@zoho.com>2019-07-04 22:20:05 +0200
commite3fcb686cc9a69a14ca10066efa330bbb9700fd6 (patch)
tree85bbd43be6faa68cba8707fe7b9a8dc8f5a86f51 /src/audio/SampleManager.cpp
parentRandomDisplacement (diff)
downloadre3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.tar
re3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.tar.gz
re3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.tar.bz2
re3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.tar.lz
re3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.tar.xz
re3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.tar.zst
re3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.zip
Diffstat (limited to '')
-rw-r--r--src/audio/SampleManager.cpp71
1 files changed, 70 insertions, 1 deletions
diff --git a/src/audio/SampleManager.cpp b/src/audio/SampleManager.cpp
index ca08ad8b..7af3446b 100644
--- a/src/audio/SampleManager.cpp
+++ b/src/audio/SampleManager.cpp
@@ -3,7 +3,10 @@
#include "SampleManager.h"
CSampleManager &cSampleManager = *(CSampleManager *)0x7341E0;
-uint32 &CSampleManager::nNumOfMp3Files = *(uint32*)0x95CC00;
+
+uint32 &nNumOfMp3Files = *(uint32 *)0x95CC00;
+uint8 &num3DProvidersAvailable = *(uint8 *)0x734237;
+uint32 *asName3DProviders = (uint32 *)0x734238;
bool CSampleManager::IsMP3RadioChannelAvailable() {
return nNumOfMp3Files != 0;
@@ -21,3 +24,69 @@ CSampleManager::RequireDigitalHandle()
{
EAXJMP(0x5664F0);
}
+
+WRAPPER
+char
+CSampleManager::AutoDetect3DProviders()
+{
+ EAXJMP(0x565990);
+}
+
+WRAPPER
+uint8
+CSampleManager::GetCDAudioDriveLetter()
+{
+ EAXJMP(0x566F20);
+}
+
+WRAPPER
+void
+CSampleManager::SetEffectsMasterVolume(uint8 volume)
+{
+ EAXJMP(0x567010);
+}
+
+WRAPPER
+void
+CSampleManager::SetMusicMasterVolume(uint8 volume)
+{
+ EAXJMP(0x567020);
+}
+
+WRAPPER
+void
+CSampleManager::SetEffectsFadeVol(uint8 volume)
+{
+ EAXJMP(0x567030);
+}
+
+WRAPPER
+void
+CSampleManager::SetMusicFadeVol(uint8 volume)
+{
+ EAXJMP(0x567040);
+}
+
+WRAPPER
+void
+CSampleManager::SetSpeakerConfig(uint32 config)
+{
+ EAXJMP(0x565900);
+}
+
+WRAPPER
+bool
+CSampleManager::GetChannelUsedFlag(int32 id)
+{
+ EAXJMP(0x567B00);
+}
+
+WRAPPER
+void
+CSampleManager::StopChannel(int32 id)
+{
+ EAXJMP(0x567BE0);
+}
+STARTPATCHES
+InjectHook(0x566490, CSampleManager::IsMP3RadioChannelAvailable, PATCH_JUMP);
+ENDPATCHES \ No newline at end of file