Add synth_vsamples

This commit is contained in:
Phillip Stephens 2022-12-17 17:50:25 -08:00
parent d593090766
commit b61b8f5439
3 changed files with 35 additions and 1 deletions

View File

@ -932,7 +932,7 @@ LIBS = [
"musyx/synthvoice", "musyx/synthvoice",
["musyx/synth_ac", True], ["musyx/synth_ac", True],
"musyx/synth_adsr", "musyx/synth_adsr",
"musyx/synth_vsamples", ["musyx/synth_vsamples", False],
["musyx/synth_dbtab", True], ["musyx/synth_dbtab", True],
"musyx/s_data", "musyx/s_data",
"musyx/hw_dspctrl", "musyx/hw_dspctrl",

View File

@ -70,6 +70,19 @@ typedef struct DSPVoice {
u32 itdFlags; u32 itdFlags;
} DSPVoice; } DSPVoice;
typedef struct SND_VS {
u8 _0;
u8 _1;
u8 _2;
u8 _3;
u8 unk1[0x908 - 0x4];
u8 _908[64];
u16 _948;
u32 _94c;
} SND_VS;
extern SND_VS vs;
extern DSPVoice* dspVoice; extern DSPVoice* dspVoice;
typedef s32 (*SND_COMPARE)(u16*, u8*); typedef s32 (*SND_COMPARE)(u16*, u8*);

View File

@ -0,0 +1,21 @@
#include "musyx/musyx_priv.h"
void vsInit() {
u32 i;
vs._0 = 0;
for (i = 0; i < 64; i++) {
vs._908[i] = 0xFF;
}
vs._948 = 0;
vs._94c = 0;
}
void vsSampleStartNotify() {
}
void vsSampleEndNotify() {
}