mirror of
https://github.com/zeldaret/tp
synced 2026-08-22 06:44:53 -04:00
Z2AudioMgr / various JAudio setup (#152)
* audioMgr setup * bunch of JAudio setup
This commit is contained in:
+19
-11
@@ -1,26 +1,34 @@
|
||||
#ifndef M_DO_M_DO_AUDIO_H
|
||||
#define M_DO_M_DO_AUDIO_H
|
||||
|
||||
#include "Z2AudioLib/Z2AudioMgr.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
// move/fix later
|
||||
template <typename T>
|
||||
class JASGlobalInstance {
|
||||
public:
|
||||
JASGlobalInstance(bool param_0) {
|
||||
if (param_0) {
|
||||
sInstance = this;
|
||||
}
|
||||
};
|
||||
~JASGlobalInstance() {
|
||||
if (sInstance == this) {
|
||||
sInstance = NULL;
|
||||
}
|
||||
};
|
||||
|
||||
T* getInstance() { return sInstance; };
|
||||
|
||||
static T* sInstance;
|
||||
};
|
||||
|
||||
extern bool struct_80450BB8; // sInitFlag
|
||||
extern bool sResetFlag;
|
||||
|
||||
class mDoAud_zelAudio_c {
|
||||
public:
|
||||
void reset();
|
||||
~mDoAud_zelAudio_c() {}
|
||||
|
||||
static void onInitFlag() { struct_80450BB8 = true; }
|
||||
static bool isResetFlag() { return sResetFlag; }
|
||||
static void onResetFlag() { sResetFlag = true; }
|
||||
static void offResetFlag() { sResetFlag = false; }
|
||||
|
||||
Z2AudioMgr mAudioMgr;
|
||||
};
|
||||
|
||||
extern JKRSolidHeap* g_mDoAud_audioHeap;
|
||||
|
||||
#endif /* M_DO_M_DO_AUDIO_H */
|
||||
|
||||
Reference in New Issue
Block a user