prime/include/musyx/synth.h

37 lines
1.1 KiB
C
Raw Normal View History

#ifndef _MUSYX_SYNTH
#define _MUSYX_SYNTH
2022-08-11 08:12:35 +00:00
#include "musyx/musyx_priv.h"
2022-10-10 09:46:24 +00:00
#ifdef __cplusplus
2022-08-11 08:12:35 +00:00
extern "C" {
2022-09-18 06:05:46 +00:00
#endif
2022-08-11 08:12:35 +00:00
extern SND_AUX_CALLBACK synthAuxACallback[8];
extern u8 synthAuxAMIDI[8];
extern u8 synthAuxAMIDISet[8];
extern void* synthAuxAUser[8];
extern SND_AUX_CALLBACK synthAuxBCallback[8];
extern u8 synthAuxBMIDI[8];
extern u8 synthAuxBMIDISet[8];
extern void* synthAuxBUser[8];
2023-02-28 18:19:12 +00:00
extern synthITDInfo synthITDDefault[8];
2022-12-18 02:31:07 +00:00
extern u32 synthFlags;
u32 vidGetInternalId(SND_VOICEID id);
2022-08-11 08:12:35 +00:00
bool synthFXSetCtrl(SND_VOICEID vid, u8 ctrl, u8 value);
bool synthFXSetCtrl14(SND_VOICEID vid, u8 ctrl, u16 value);
bool synthSendKeyOff(SND_VOICEID vid);
2022-09-18 06:05:46 +00:00
SND_VOICEID synthFXStart(SND_FXID fid, u8 vol, u8 pan, u8 studio, u8);
2023-03-30 02:27:34 +00:00
void synthVolume(unsigned char volume, unsigned short time, unsigned char vGroup,
unsigned char seqMode, unsigned long seqId);
2022-08-11 08:12:35 +00:00
/* TODO: Move this where it belongs */
2022-09-18 06:05:46 +00:00
void hwSetAUXProcessingCallbacks(u8 studio, SND_AUX_CALLBACK auxA, void* userA,
SND_AUX_CALLBACK auxB, void* userB);
2022-10-10 09:46:24 +00:00
#ifdef __cplusplus
2022-08-11 08:12:35 +00:00
}
2022-09-18 06:05:46 +00:00
#endif
#endif // _MUSYX_SYNTH