c: alSeqpGetChlFXMix, alCSPGetChlVol

This commit is contained in:
Mittenz
2020-08-18 00:33:11 -05:00
parent c3262f4755
commit afa5d2394c
18 changed files with 130 additions and 119 deletions
+10
View File
@@ -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;
}
+9
View File
@@ -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;
}
+16
View File
@@ -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
-7
View File
@@ -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")
-7
View File
@@ -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")