Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JASDriver Namespace Reference

Typedefs

typedef s16 *(* MixCallback) (s32)
 
typedef void(* MixFunc) (s16 *, u32, MixCallback)
 

Functions

void initAI (void(*)(void))
 
void startDMA ()
 
void stopDMA ()
 
void setOutputRate (JASOutputRate)
 
void updateDac ()
 
void updateDSP ()
 
void readDspBuffer (s16 *, u32)
 
void finishDSPFrame ()
 
void registerMixCallback (MixCallback, JASMixMode)
 
f32 getDacRate ()
 
u32 getSubFrames ()
 
u32 getDacSize ()
 
u32 getFrameSamples ()
 
void mixMonoTrack (s16 *, u32, MixCallback)
 
void mixMonoTrackWide (s16 *, u32, MixCallback)
 
void mixExtraTrack (s16 *, u32, MixCallback)
 
void mixInterleaveTrack (s16 *, u32, MixCallback)
 
u32 getSubFrameCounter ()
 
void subframeCallback ()
 
void DSPSyncCallback ()
 
void setDSPLevel (f32)
 
u16 getChannelLevel_dsp ()
 
f32 getDSPLevel ()
 
void setOutputMode (u32)
 
u32 getOutputMode ()
 
void waitSubFrame ()
 
int rejectCallback (DriverCallback, void *)
 
bool registerDspSyncCallback (DriverCallback, void *)
 
bool registerSubFrameCallback (DriverCallback, void *)
 
void updateDacCallback ()
 

Variables

const MixFunc sMixFuncs [4]
 
s16sDmaDacBuffer [3]
 
JASMixMode sMixMode = MIX_MODE_EXTRA
 
f32 sDacRate = 32028.5f
 
u32 sSubFrames = 0x00000007
 
s16 ** sDspDacBuffer
 
s32 sDspDacWriteBuffer
 
s32 sDspDacReadBuffer
 
s32 sDspStatus
 
void(* sDspDacCallback )(s16 *, u32)
 
s16lastRspMadep
 
void(* dacCallbackFunc )(s16 *, u32)
 
MixCallback extMixCallback
 
u32 sOutputRate
 
u32 sSubFrameCounter
 
JASCallbackMgr sDspSyncCallback
 
JASCallbackMgr sSubFrameCallback
 
JASCallbackMgr sUpdateDacCallback
 
u16 MAX_MIXERLEVEL = 0x2EE0
 
u32 JAS_SYSTEM_OUTPUT_MODE = 0x00000001
 

Typedef Documentation

◆ MixCallback

typedef s16 *(* JASDriver::MixCallback) (s32)

◆ MixFunc

typedef void(* JASDriver::MixFunc) (s16 *, u32, MixCallback)

Function Documentation

◆ DSPSyncCallback()

void JASDriver::DSPSyncCallback ( )

◆ finishDSPFrame()

void JASDriver::finishDSPFrame ( )

◆ getChannelLevel_dsp()

u16 JASDriver::getChannelLevel_dsp ( )

◆ getDacRate()

f32 JASDriver::getDacRate ( )

◆ getDacSize()

u32 JASDriver::getDacSize ( )

◆ getDSPLevel()

f32 JASDriver::getDSPLevel ( )

◆ getFrameSamples()

u32 JASDriver::getFrameSamples ( )

◆ getOutputMode()

u32 JASDriver::getOutputMode ( )

◆ getSubFrameCounter()

u32 JASDriver::getSubFrameCounter ( )

◆ getSubFrames()

u32 JASDriver::getSubFrames ( )

◆ initAI()

void JASDriver::initAI ( void(*)(void param_0)

◆ mixExtraTrack()

void JASDriver::mixExtraTrack ( s16 buffer,
u32  param_1,
MixCallback  param_2 
)

◆ mixInterleaveTrack()

void JASDriver::mixInterleaveTrack ( s16 buffer,
u32  param_1,
MixCallback  param_2 
)

◆ mixMonoTrack()

void JASDriver::mixMonoTrack ( s16 buffer,
u32  param_1,
MixCallback  param_2 
)

◆ mixMonoTrackWide()

void JASDriver::mixMonoTrackWide ( s16 buffer,
u32  param_1,
MixCallback  param_2 
)

◆ readDspBuffer()

void JASDriver::readDspBuffer ( s16 param_0,
u32  param_1 
)

◆ registerDspSyncCallback()

bool JASDriver::registerDspSyncCallback ( DriverCallback  callback,
void param_1 
)

◆ registerMixCallback()

void JASDriver::registerMixCallback ( MixCallback  param_0,
JASMixMode  param_1 
)

◆ registerSubFrameCallback()

bool JASDriver::registerSubFrameCallback ( DriverCallback  callback,
void param_1 
)

◆ rejectCallback()

int JASDriver::rejectCallback ( DriverCallback  callback,
void param_1 
)

◆ setDSPLevel()

void JASDriver::setDSPLevel ( f32  param_0)

◆ setOutputMode()

void JASDriver::setOutputMode ( u32  param_0)

◆ setOutputRate()

void JASDriver::setOutputRate ( JASOutputRate  param_0)

◆ startDMA()

void JASDriver::startDMA ( )

◆ stopDMA()

void JASDriver::stopDMA ( )

◆ subframeCallback()

void JASDriver::subframeCallback ( )

◆ updateDac()

void JASDriver::updateDac ( )

◆ updateDacCallback()

void JASDriver::updateDacCallback ( )

◆ updateDSP()

void JASDriver::updateDSP ( )

◆ waitSubFrame()

void JASDriver::waitSubFrame ( )

Variable Documentation

◆ dacCallbackFunc

void(* JASDriver::dacCallbackFunc)(s16 *, u32) ( s16 ,
u32   
)
extern

◆ extMixCallback

JASDriver::MixCallback JASDriver::extMixCallback
extern

◆ JAS_SYSTEM_OUTPUT_MODE

u32 JASDriver::JAS_SYSTEM_OUTPUT_MODE = 0x00000001
extern

◆ lastRspMadep

s16 * JASDriver::lastRspMadep
extern

◆ MAX_MIXERLEVEL

u16 JASDriver::MAX_MIXERLEVEL = 0x2EE0
extern

◆ sDacRate

f32 JASDriver::sDacRate = 32028.5f
extern

◆ sDmaDacBuffer

s16 * JASDriver::sDmaDacBuffer
extern

◆ sDspDacBuffer

s16 ** JASDriver::sDspDacBuffer
extern

◆ sDspDacCallback

void(* JASDriver::sDspDacCallback)(s16 *, u32) ( s16 ,
u32   
)
extern

◆ sDspDacReadBuffer

s32 JASDriver::sDspDacReadBuffer
extern

◆ sDspDacWriteBuffer

s32 JASDriver::sDspDacWriteBuffer
extern

◆ sDspStatus

s32 JASDriver::sDspStatus
extern

◆ sDspSyncCallback

JASCallbackMgr JASDriver::sDspSyncCallback
extern

◆ sMixFuncs

const JASDriver::MixFunc JASDriver::sMixFuncs
extern
Initial value:
= {
}
void mixInterleaveTrack(s16 *, u32, MixCallback)
Definition JASAiCtrl.cpp:314
void mixMonoTrackWide(s16 *, u32, MixCallback)
Definition JASAiCtrl.cpp:274
void mixExtraTrack(s16 *, u32, MixCallback)
Definition JASAiCtrl.cpp:293
void mixMonoTrack(s16 *, u32, MixCallback)
Definition JASAiCtrl.cpp:257

◆ sMixMode

JASMixMode JASDriver::sMixMode = MIX_MODE_EXTRA
extern

◆ sOutputRate

u32 JASDriver::sOutputRate
extern

◆ sSubFrameCallback

JASCallbackMgr JASDriver::sSubFrameCallback
extern

◆ sSubFrameCounter

u32 JASDriver::sSubFrameCounter
extern

◆ sSubFrames

u32 JASDriver::sSubFrames = 0x00000007
extern

◆ sUpdateDacCallback

JASCallbackMgr JASDriver::sUpdateDacCallback
extern