mirror of
https://github.com/encounter/tp.git
synced 2026-03-30 11:40:53 -07:00
a6e76c0841
* some wii OS fixes * remove old dol2asm comments * remove dol2asm.h * remove function address comments * normalize ATTRIBUTE_ALIGN usage * DECL_WEAK macro * fix gcc attribute weak macro * wrap more mwcc specific things in ifdefs * fixes * fix revo sdk version flags * fixes
37 lines
927 B
C
37 lines
927 B
C
#ifndef JASAUDIOTHREAD_H
|
|
#define JASAUDIOTHREAD_H
|
|
|
|
#include "JSystem/JAudio2/JASGadget.h"
|
|
#include "JSystem/JKernel/JKRThread.h"
|
|
|
|
enum JASAudioMessage {
|
|
AUDIOMSG_DMA = 0,
|
|
AUDIOMSG_DSP = 1,
|
|
AUDIOMSG_STOP = 2,
|
|
};
|
|
|
|
/**
|
|
* @ingroup jsystem-jaudio
|
|
*
|
|
*/
|
|
struct JASAudioThread : public JKRThread, public JASGlobalInstance<JASAudioThread> {
|
|
JASAudioThread(int, int, u32);
|
|
static void create(s32);
|
|
void stop();
|
|
virtual void* run();
|
|
static void DMACallback();
|
|
static void DSPCallback(void*);
|
|
virtual ~JASAudioThread() {}
|
|
|
|
static JASAudioThread* getThreadPointer() { return getInstance(); }
|
|
static int getDSPSyncCount() { return snIntCount; }
|
|
static void setDSPSyncCount(u32 param_0) { snIntCount = param_0; }
|
|
|
|
/* 0x7c */ OSThreadQueue sThreadQueue;
|
|
/* 0x84 */ bool sbPauseFlag; // type unsure
|
|
|
|
static volatile int snIntCount; // type unsure
|
|
};
|
|
|
|
#endif /* JASAUDIOTHREAD_H */
|