summaryrefslogtreecommitdiffstats
path: root/src/audio/SampleManager.cpp
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2019-07-08 21:44:32 +0200
committerFilip Gawin <filip.gawin@zoho.com>2019-07-19 16:22:46 +0200
commita04d8f24be355b69bbba88b50055f2b1420fc29f (patch)
tree9bf1455e1cbb4f403dcf9ee9a4c16b52d610a108 /src/audio/SampleManager.cpp
parentfixed dodo bug (diff)
downloadre3-a04d8f24be355b69bbba88b50055f2b1420fc29f.tar
re3-a04d8f24be355b69bbba88b50055f2b1420fc29f.tar.gz
re3-a04d8f24be355b69bbba88b50055f2b1420fc29f.tar.bz2
re3-a04d8f24be355b69bbba88b50055f2b1420fc29f.tar.lz
re3-a04d8f24be355b69bbba88b50055f2b1420fc29f.tar.xz
re3-a04d8f24be355b69bbba88b50055f2b1420fc29f.tar.zst
re3-a04d8f24be355b69bbba88b50055f2b1420fc29f.zip
Diffstat (limited to '')
-rw-r--r--src/audio/SampleManager.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/audio/SampleManager.cpp b/src/audio/SampleManager.cpp
index fbeb49ed..2e11532e 100644
--- a/src/audio/SampleManager.cpp
+++ b/src/audio/SampleManager.cpp
@@ -1,6 +1,6 @@
+#include "SampleManager.h"
#include "common.h"
#include "patcher.h"
-#include "SampleManager.h"
CSampleManager &cSampleManager = *(CSampleManager *)0x7341E0;
@@ -8,11 +8,29 @@ uint32 &nNumOfMp3Files = *(uint32 *)0x95CC00;
uint8 &num3DProvidersAvailable = *(uint8 *)0x734237;
uint32 *asName3DProviders = (uint32 *)0x734238;
-bool CSampleManager::IsMP3RadioChannelAvailable() {
+bool
+CSampleManager::IsMP3RadioChannelAvailable()
+{
return nNumOfMp3Files != 0;
}
WRAPPER
+bool
+CSampleManager::CheckForAnAudioFileOnCD()
+{
+ EAXJMP(0x566EA0);
+}
+
+WRAPPER
+int32 CSampleManager::GetSampleBaseFrequency(int32) { EAXJMP(0x5672A0); }
+
+WRAPPER
+int32 CSampleManager::GetSampleLoopStartOffset(int32) { EAXJMP(0x5672C0); }
+
+WRAPPER
+int32 CSampleManager::GetSampleLoopEndOffset(int32) { EAXJMP(0x5672E0); }
+
+WRAPPER
bool CSampleManager::IsSampleBankLoaded(uint8) { EAXJMP(0x567130); }
WRAPPER