Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
mix.cpp File Reference

Classes

struct  HBMMIXChannel
 

Typedefs

typedef struct HBMMIXChannel HBMMIXChannel
 

Enumerations

enum  HBMMIXChannelModeFlags { HBMMIX_FLAG_31 = 1u << 31 , HBMMIX_FLAG_30 = 1 << 30 , HBMMIX_FLAG_29 = 1 << 29 , HBMMIX_FLAG_28 = 1 << 28 }
 

Functions

static void __HBMMIXSetPan (HBMMIXChannel *channel)
 
static void __HBMMIXResetChannel (HBMMIXChannel *channel)
 
static int __HBMMIXClampPan (int pan)
 
static u16 __HBMMIXGetVolume (int db_)
 
void HBMMIXInit (void)
 
void HBMMIXQuit (void)
 
void HBMMIXSetSoundMode (HBMMIXSoundMode mode)
 
HBMMIXSoundMode HBMMIXGetSoundMode (void)
 
void HBMMIXInitChannel (AXVPB *axvpb, int input, int auxA, int pan, int fader)
 
void HBMMIXReleaseChannel (AXVPB *axvpb)
 
void HBMMIXSetInput (AXVPB *p, int dB)
 
void HBMMIXSetAuxA (AXVPB *p, int dB)
 
void HBMMIXSetPan (AXVPB *p, int pan)
 
void HBMMIXSetFader (AXVPB *p, int dB)
 
void HBMMIXUpdateSettings (void)
 
HBMMIXIndex HBMAllocIndex (HBMMIXKey key)
 
HBMMIXIndex HBMGetIndex (HBMMIXKey key)
 
void HBMFreeIndex (HBMMIXIndex index)
 
void HBMFreeIndexByKey (HBMMIXKey key)
 

Variables

static u16 __HBMMIXVolumeTable [964+1]
 
static int __HBMMIXPanTable [128]
 
static s16 __HBMMIX_DPL2_front [128]
 
static s16 __HBMMIX_DPL2_rear [128]
 
static s8 sIndex2IdTable [HBMMIX_MAX_KEYS]
 
static s8 sId2IndexTable [HBMMIX_MAX_INDICES]
 
static HBMMIXSoundMode __HBMMIXSoundMode
 
static HBMMIXChannel__HBMMIXChannel
 
static HBMMIXChannel __s_HBMMIXChannel [HBMMIX_MAX_CHANNELS]
 
static BOOL __init
 

Typedef Documentation

◆ HBMMIXChannel

typedef struct HBMMIXChannel HBMMIXChannel

Enumeration Type Documentation

◆ HBMMIXChannelModeFlags

Enumerator
HBMMIX_FLAG_31 
HBMMIX_FLAG_30 
HBMMIX_FLAG_29 
HBMMIX_FLAG_28 

Function Documentation

◆ __HBMMIXClampPan()

static int __HBMMIXClampPan ( int pan)
static

◆ __HBMMIXGetVolume()

static u16 __HBMMIXGetVolume ( int db_)
static

◆ __HBMMIXResetChannel()

static void __HBMMIXResetChannel ( HBMMIXChannel * channel)
static

◆ __HBMMIXSetPan()

static void __HBMMIXSetPan ( HBMMIXChannel * channel)
static

◆ HBMAllocIndex()

HBMMIXIndex HBMAllocIndex ( HBMMIXKey key)

◆ HBMFreeIndex()

void HBMFreeIndex ( HBMMIXIndex index)

◆ HBMFreeIndexByKey()

void HBMFreeIndexByKey ( HBMMIXKey key)

◆ HBMGetIndex()

HBMMIXIndex HBMGetIndex ( HBMMIXKey key)

◆ HBMMIXGetSoundMode()

HBMMIXSoundMode HBMMIXGetSoundMode ( void )

◆ HBMMIXInit()

void HBMMIXInit ( void )

◆ HBMMIXInitChannel()

void HBMMIXInitChannel ( AXVPB * axvpb,
int input,
int auxA,
int pan,
int fader )

◆ HBMMIXQuit()

void HBMMIXQuit ( void )

◆ HBMMIXReleaseChannel()

void HBMMIXReleaseChannel ( AXVPB * axvpb)

◆ HBMMIXSetAuxA()

void HBMMIXSetAuxA ( AXVPB * p,
int dB )

◆ HBMMIXSetFader()

void HBMMIXSetFader ( AXVPB * p,
int dB )

◆ HBMMIXSetInput()

void HBMMIXSetInput ( AXVPB * p,
int dB )

◆ HBMMIXSetPan()

void HBMMIXSetPan ( AXVPB * p,
int pan )

◆ HBMMIXSetSoundMode()

void HBMMIXSetSoundMode ( HBMMIXSoundMode mode)

◆ HBMMIXUpdateSettings()

void HBMMIXUpdateSettings ( void )

Variable Documentation

◆ __HBMMIX_DPL2_front

s16 __HBMMIX_DPL2_front[128]
static
Initial value:
=
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, -1, -1, -1, -1, -1, -2, -2, -2, -2, -3, -3,
-3, -4, -4, -4, -5, -5, -6, -6, -6, -7, -7, -8,
-8, -9, -9, -10, -11, -11, -12, -12, -13, -14, -14, -15,
-16, -17, -17, -18, -19, -20, -21, -21, -22, -23, -24, -25,
-26, -27, -28, -29, -30, -31, -32, -34, -35, -36, -37, -38,
-40, -41, -42, -44, -45, -47, -48, -50, -52, -53, -55, -57,
-58, -60, -62, -64, -66, -68, -70, -73, -75, -77, -80, -82,
-85, -88, -90, -93, -96, -100, -103, -106, -110, -114, -118, -122,
-126, -131, -136, -141, -146, -152, -159, -166, -173, -181, -190, -201,
-212, -225, -241, -261, -286, -321, -381, -960
}

◆ __HBMMIX_DPL2_rear

s16 __HBMMIX_DPL2_rear[128]
static
Initial value:
=
{
-61, -61, -60, -59, -59, -58, -58, -57, -56, -56, -55, -55, -54, -53, -53,
-52, -52, -51, -50, -50, -49, -49, -48, -48, -47, -47, -46, -46, -45, -45,
-44, -44, -43, -43, -42, -42, -41, -41, -40, -40, -39, -39, -38, -38, -38,
-37, -37, -36, -36, -35, -35, -35, -34, -34, -33, -33, -32, -32, -32, -31,
-31, -31, -30, -30, -29, -29, -29, -28, -28, -28, -27, -27, -27, -26, -26,
-26, -25, -25, -25, -24, -24, -24, -23, -23, -23, -22, -22, -22, -21, -21,
-21, -20, -20, -20, -20, -19, -19, -19, -18, -18, -18, -18, -17, -17, -17,
-17, -16, -16, -16, -16, -15, -15, -15, -15, -14, -14, -14, -14, -13, -13,
-13, -13, -13, -12, -12, -12, -12, -11
}

◆ __HBMMIXChannel

HBMMIXChannel* __HBMMIXChannel
static

◆ __HBMMIXPanTable

int __HBMMIXPanTable[128]
static
Initial value:
=
{
0, 0, -1, -1, -1, -2, -2, -2, -3, -3, -4, -4, -4,
-5, -5, -5, -6, -6, -7, -7, -7, -8, -8, -9, -9, -10,
-10, -10, -11, -11, -12, -12, -13, -13, -14, -14, -14, -15, -15,
-16, -16, -17, -17, -18, -18, -19, -20, -20, -21, -21, -22, -22,
-23, -23, -24, -25, -25, -26, -26, -27, -28, -28, -29, -30, -30,
-31, -32, -33, -33, -34, -35, -36, -36, -37, -38, -39, -40, -40,
-41, -42, -43, -44, -45, -46, -47, -48, -49, -50, -51, -52, -54,
-55, -56, -57, -59, -60, -61, -63, -64, -66, -67, -69, -71, -72,
-74, -76, -78, -80, -83, -85, -87, -90, -93, -96, -99, -102, -106,
-110, -115, -120, -126, -133, -140, -150, -163, -180, -210, -904
}

◆ __HBMMIXSoundMode

HBMMIXSoundMode __HBMMIXSoundMode
static

◆ __HBMMIXVolumeTable

u16 __HBMMIXVolumeTable[964+1]
static

◆ __init

BOOL __init
static

◆ __s_HBMMIXChannel

HBMMIXChannel __s_HBMMIXChannel[HBMMIX_MAX_CHANNELS]
static

◆ sId2IndexTable

s8 sId2IndexTable[HBMMIX_MAX_INDICES]
static

◆ sIndex2IdTable

s8 sIndex2IdTable[HBMMIX_MAX_KEYS]
static