Loading [MathJax]/extensions/MathZoom.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
mix.c File Reference

Functions

static u16 __MIXGetVolume (int db)
 
static int __MIXGetPanL (int pan)
 
static int __MIXGetPanR (int pan)
 
static void __MIXResetChannel (MIXChannel *channel)
 
static void __MIXSetPan (MIXChannel *channel)
 
static int __MIXClampPan (int pan)
 
void MIXInit (void)
 
void MIXQuit (void)
 
void MIXSetSoundMode (u32 mode)
 
u32 MIXGetSoundMode (void)
 
void MIXInitChannel (AXVPB *axvpb, u32 mode, int input, int auxA, int auxB, int pan, int span, int fader)
 
void MIXReleaseChannel (AXVPB *axvpb)
 
void MIXResetControls (AXVPB *p)
 
void MIXSetInput (AXVPB *p, int dB)
 
void MIXAdjustInput (AXVPB *p, int dB)
 
int MIXGetInput (AXVPB *p)
 
void MIXAuxAPostFader (AXVPB *p)
 
void MIXAuxAPreFader (AXVPB *p)
 
int MIXAuxAIsPostFader (AXVPB *p)
 
void MIXSetAuxA (AXVPB *p, int dB)
 
void MIXAdjustAuxA (AXVPB *p, int dB)
 
int MIXGetAuxA (AXVPB *p)
 
void MIXAuxBPostFader (AXVPB *p)
 
void MIXAuxBPreFader (AXVPB *p)
 
int MIXAuxBIsPostFader (AXVPB *p)
 
void MIXSetAuxB (AXVPB *p, int dB)
 
void MIXAdjustAuxB (AXVPB *p, int dB)
 
int MIXGetAuxB (AXVPB *p)
 
void MIXSetPan (AXVPB *p, int pan)
 
void MIXAdjustPan (AXVPB *p, int pan)
 
int MIXGetPan (AXVPB *p)
 
void MIXSetSPan (AXVPB *p, int span)
 
void MIXAdjustSPan (AXVPB *p, int span)
 
int MIXGetSPan (AXVPB *p)
 
void MIXMute (AXVPB *p)
 
void MIXUnMute (AXVPB *p)
 
int MIXIsMute (AXVPB *p)
 
void MIXSetFader (AXVPB *p, int dB)
 
void MIXAdjustFader (AXVPB *p, int dB)
 
int MIXGetFader (AXVPB *p)
 
void MIXSetDvdStreamFader (int dB)
 
int MIXGetDvdStreamFader (void)
 
void MIXUpdateSettings (void)
 

Variables

u16 __MIXVolumeTable [965]
 
int __MIXPanTable [128]
 
s16 __MIX_DPL2_front [128]
 
s16 __MIX_DPL2_rear [128]
 
u8 __MIXAIVolumeTable [50]
 
static MIXChannel __MIXChannel [64]
 
static int __MIXDvdStreamAttenCurrent
 
static int __MIXDvdStreamAttenUser
 
static u32 __MIXSoundMode
 

Function Documentation

◆ __MIXClampPan()

static int __MIXClampPan ( int pan)
static

◆ __MIXGetPanL()

static int __MIXGetPanL ( int pan)
static

◆ __MIXGetPanR()

static int __MIXGetPanR ( int pan)
static

◆ __MIXGetVolume()

static u16 __MIXGetVolume ( int db)
static

◆ __MIXResetChannel()

static void __MIXResetChannel ( MIXChannel * channel)
static

◆ __MIXSetPan()

static void __MIXSetPan ( MIXChannel * channel)
static

◆ MIXAdjustAuxA()

void MIXAdjustAuxA ( AXVPB * p,
int dB )

◆ MIXAdjustAuxB()

void MIXAdjustAuxB ( AXVPB * p,
int dB )

◆ MIXAdjustFader()

void MIXAdjustFader ( AXVPB * p,
int dB )

◆ MIXAdjustInput()

void MIXAdjustInput ( AXVPB * p,
int dB )

◆ MIXAdjustPan()

void MIXAdjustPan ( AXVPB * p,
int pan )

◆ MIXAdjustSPan()

void MIXAdjustSPan ( AXVPB * p,
int span )

◆ MIXAuxAIsPostFader()

int MIXAuxAIsPostFader ( AXVPB * p)

◆ MIXAuxAPostFader()

void MIXAuxAPostFader ( AXVPB * p)

◆ MIXAuxAPreFader()

void MIXAuxAPreFader ( AXVPB * p)

◆ MIXAuxBIsPostFader()

int MIXAuxBIsPostFader ( AXVPB * p)

◆ MIXAuxBPostFader()

void MIXAuxBPostFader ( AXVPB * p)

◆ MIXAuxBPreFader()

void MIXAuxBPreFader ( AXVPB * p)

◆ MIXGetAuxA()

int MIXGetAuxA ( AXVPB * p)

◆ MIXGetAuxB()

int MIXGetAuxB ( AXVPB * p)

◆ MIXGetDvdStreamFader()

int MIXGetDvdStreamFader ( void )

◆ MIXGetFader()

int MIXGetFader ( AXVPB * p)

◆ MIXGetInput()

int MIXGetInput ( AXVPB * p)

◆ MIXGetPan()

int MIXGetPan ( AXVPB * p)

◆ MIXGetSoundMode()

u32 MIXGetSoundMode ( void )

◆ MIXGetSPan()

int MIXGetSPan ( AXVPB * p)

◆ MIXInit()

void MIXInit ( void )

◆ MIXInitChannel()

void MIXInitChannel ( AXVPB * axvpb,
u32 mode,
int input,
int auxA,
int auxB,
int pan,
int span,
int fader )

◆ MIXIsMute()

int MIXIsMute ( AXVPB * p)

◆ MIXMute()

void MIXMute ( AXVPB * p)

◆ MIXQuit()

void MIXQuit ( void )

◆ MIXReleaseChannel()

void MIXReleaseChannel ( AXVPB * axvpb)

◆ MIXResetControls()

void MIXResetControls ( AXVPB * p)

◆ MIXSetAuxA()

void MIXSetAuxA ( AXVPB * p,
int dB )

◆ MIXSetAuxB()

void MIXSetAuxB ( AXVPB * p,
int dB )

◆ MIXSetDvdStreamFader()

void MIXSetDvdStreamFader ( int dB)

◆ MIXSetFader()

void MIXSetFader ( AXVPB * p,
int dB )

◆ MIXSetInput()

void MIXSetInput ( AXVPB * p,
int dB )

◆ MIXSetPan()

void MIXSetPan ( AXVPB * p,
int pan )

◆ MIXSetSoundMode()

void MIXSetSoundMode ( u32 mode)

◆ MIXSetSPan()

void MIXSetSPan ( AXVPB * p,
int span )

◆ MIXUnMute()

void MIXUnMute ( AXVPB * p)

◆ MIXUpdateSettings()

void MIXUpdateSettings ( void )

Variable Documentation

◆ __MIX_DPL2_front

s16 __MIX_DPL2_front[128]
Initial value:
= {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
0xFFFE, 0xFFFE, 0xFFFE, 0xFFFE, 0xFFFD, 0xFFF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0x0C,
0x0E, 0x10, 0x12, 0x14,
0x16, 0x19, 0x1C, 0x20,
0x24, 0x28, 0x2D, 0x32,
0x39, 0x40, 0x47, 0x50,
0x5A, 0x65, 0x71, 0x7F,
0x8F, 0xA0, 0xB4, 0xCA,
0xE3, 0xFF
}

◆ __MIXChannel

MIXChannel __MIXChannel[64]
static

◆ __MIXDvdStreamAttenCurrent

int __MIXDvdStreamAttenCurrent
static

◆ __MIXDvdStreamAttenUser

int __MIXDvdStreamAttenUser
static

◆ __MIXPanTable

int __MIXPanTable[128]

◆ __MIXSoundMode

u32 __MIXSoundMode
static

◆ __MIXVolumeTable

u16 __MIXVolumeTable[965]