summaryrefslogtreecommitdiffstats
path: root/src/audio/SampleManager.cpp
blob: ca08ad8bb3499df60abda5a15875b48ba9345719 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "common.h"
#include "patcher.h"
#include "SampleManager.h"

CSampleManager &cSampleManager = *(CSampleManager *)0x7341E0;
uint32 &CSampleManager::nNumOfMp3Files = *(uint32*)0x95CC00;

bool CSampleManager::IsMP3RadioChannelAvailable() {
	return nNumOfMp3Files != 0;
}

WRAPPER void
CSampleManager::ReleaseDigitalHandle()
{
	EAXJMP(0x5664B0);
}

WRAPPER
void
CSampleManager::RequireDigitalHandle()
{
	EAXJMP(0x5664F0);
}