mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(sound): add SESound::s_Initialized
This commit is contained in:
parent
50554c5bd0
commit
ff62e37b4b
@ -4,6 +4,7 @@
|
|||||||
#define LOG_WRITE(result, ...) \
|
#define LOG_WRITE(result, ...) \
|
||||||
SESound::Log_Write(__LINE__, __FILE__, result, __VA_ARGS__);
|
SESound::Log_Write(__LINE__, __FILE__, result, __VA_ARGS__);
|
||||||
|
|
||||||
|
int32_t SESound::s_Initialized;
|
||||||
FMOD::System* SESound::s_pGameSystem;
|
FMOD::System* SESound::s_pGameSystem;
|
||||||
|
|
||||||
void* FSoundAllocCallback(uint32_t size, FMOD_MEMORY_TYPE type, const char* sourcestr) {
|
void* FSoundAllocCallback(uint32_t size, FMOD_MEMORY_TYPE type, const char* sourcestr) {
|
||||||
@ -36,6 +37,8 @@ FMOD::SoundGroup* SESound::CreateSoundGroup(const char* name, int32_t maxAudible
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SESound::Init(int32_t maxChannels, int32_t* a2, int32_t enableReverb, int32_t enableSoftwareHRTF, int32_t* numChannels, int32_t* outputDriverIndex, const char* outputDriverName, void* a8, int32_t a9) {
|
void SESound::Init(int32_t maxChannels, int32_t* a2, int32_t enableReverb, int32_t enableSoftwareHRTF, int32_t* numChannels, int32_t* outputDriverIndex, const char* outputDriverName, void* a8, int32_t a9) {
|
||||||
|
SESound::s_Initialized = 0;
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
FMOD_INITFLAGS fmodFlags = FMOD_INIT_NORMAL;
|
FMOD_INITFLAGS fmodFlags = FMOD_INIT_NORMAL;
|
||||||
@ -150,6 +153,8 @@ void SESound::Init(int32_t maxChannels, int32_t* a2, int32_t enableReverb, int32
|
|||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
SESound::s_Initialized = 1;
|
||||||
|
|
||||||
LOG_WRITE(FMOD_OK, " - FMOD System Init OK!");
|
LOG_WRITE(FMOD_OK, " - FMOD System Init OK!");
|
||||||
LOG_WRITE(FMOD_OK, "=> Game Sound is ready.");
|
LOG_WRITE(FMOD_OK, "=> Game Sound is ready.");
|
||||||
LOG_WRITE(FMOD_OK, " ");
|
LOG_WRITE(FMOD_OK, " ");
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
class SESound {
|
class SESound {
|
||||||
public:
|
public:
|
||||||
// Static variables
|
// Static variables
|
||||||
|
static int32_t s_Initialized;
|
||||||
static FMOD::System* s_pGameSystem;
|
static FMOD::System* s_pGameSystem;
|
||||||
|
|
||||||
// Static functions
|
// Static functions
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user