re3-wiiu/src/audio/SampleManager.cpp

138 lines
2.0 KiB
C++
Raw Normal View History

2019-07-08 21:44:32 +02:00
#include "SampleManager.h"
2019-06-16 00:20:55 +02:00
#include "common.h"
2019-07-01 00:07:58 +02:00
#include "patcher.h"
2019-06-16 00:20:55 +02:00
CSampleManager &cSampleManager = *(CSampleManager *)0x7341E0;
2019-07-02 20:35:47 +02:00
uint32 &nNumOfMp3Files = *(uint32 *)0x95CC00;
uint8 &num3DProvidersAvailable = *(uint8 *)0x734237;
uint32 *asName3DProviders = (uint32 *)0x734238;
2019-06-16 00:20:55 +02:00
2019-07-08 21:44:32 +02:00
bool
CSampleManager::IsMP3RadioChannelAvailable()
{
2019-06-16 00:20:55 +02:00
return nNumOfMp3Files != 0;
}
2019-06-30 23:58:24 +02:00
2019-07-08 21:44:32 +02:00
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); }
2019-07-05 21:15:32 +02:00
WRAPPER
bool CSampleManager::IsSampleBankLoaded(uint8) { EAXJMP(0x567130); }
WRAPPER
void CSampleManager::UnloadSampleBank(uint8) { EAXJMP(0x567110); }
WRAPPER
void
CSampleManager::Terminate()
{
EAXJMP(0x566DC0);
}
WRAPPER
bool
CSampleManager::Initialise()
{
EAXJMP(0x566530);
}
WRAPPER
int32
CSampleManager::GetActiveSamples()
{
EAXJMP(0x565970);
}
2019-06-30 23:58:24 +02:00
WRAPPER void
CSampleManager::ReleaseDigitalHandle()
{
EAXJMP(0x5664B0);
}
2019-07-01 00:07:58 +02:00
WRAPPER
void
CSampleManager::RequireDigitalHandle()
{
EAXJMP(0x5664F0);
}
2019-07-02 20:35:47 +02:00
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);
}
2019-07-05 21:15:32 +02:00
2019-07-02 20:35:47 +02:00
STARTPATCHES
InjectHook(0x566490, CSampleManager::IsMP3RadioChannelAvailable, PATCH_JUMP);
ENDPATCHES