mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
c: alSeqpGetChlFXMix, alCSPGetChlVol
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/* The comment below is needed for this file to be picked up by generate_ld */
|
||||
/* RAM_POS: 0x800C79A0 */
|
||||
|
||||
|
||||
#include "audio_internal.h"
|
||||
|
||||
u8 alCSPGetChlVol(ALCSPlayer *seqp, u8 chan)
|
||||
{
|
||||
return seqp->chanState[chan].vol;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/* The comment below is needed for this file to be picked up by generate_ld */
|
||||
/* RAM_POS: 0x800C79C0 */
|
||||
|
||||
#include "audio_internal.h"
|
||||
|
||||
u8 alSeqpGetChlFXMix(ALSeqPlayer *seqp, u8 chan)
|
||||
{
|
||||
return seqp->chanState[chan].fxmix;
|
||||
}
|
||||
@@ -3,5 +3,21 @@
|
||||
|
||||
#include "types.h"
|
||||
#include "macros.h"
|
||||
#include "audio_internal.h"
|
||||
|
||||
#if 1
|
||||
GLOBAL_ASM("lib/asm/non_matchings/unknown_0C84E0/alCSPSetChlPan.s")
|
||||
#else
|
||||
void alCSPSetChlPan(ALCSPlayer *seqp, u8 chan, ALPan pan)
|
||||
{
|
||||
ALEvent evt;
|
||||
|
||||
evt.type = AL_SEQP_MIDI_EVT;
|
||||
evt.msg.midi.ticks = 0;
|
||||
evt.msg.midi.status = AL_MIDI_ControlChange | chan;
|
||||
evt.msg.midi.byte1 = AL_MIDI_PAN_CTRL;
|
||||
evt.msg.midi.byte2 = pan;
|
||||
|
||||
alEvtqPostEvent(&seqp->evtq, &evt, 0);
|
||||
}
|
||||
#endif
|
||||
@@ -1,7 +0,0 @@
|
||||
/* The comment below is needed for this file to be picked up by generate_ld */
|
||||
/* RAM_POS: 0x800C79A0 */
|
||||
|
||||
#include "types.h"
|
||||
#include "macros.h"
|
||||
|
||||
GLOBAL_ASM("lib/asm/non_matchings/unknown_0C85A0/alCSPGetChlVol.s")
|
||||
@@ -1,7 +0,0 @@
|
||||
/* The comment below is needed for this file to be picked up by generate_ld */
|
||||
/* RAM_POS: 0x800C79C0 */
|
||||
|
||||
#include "types.h"
|
||||
#include "macros.h"
|
||||
|
||||
GLOBAL_ASM("lib/asm/non_matchings/unknown_0C85C0/alSeqpGetChlFXMix.s")
|
||||
Reference in New Issue
Block a user