diff --git a/configure.py b/configure.py index be05ed8b..cab28472 100755 --- a/configure.py +++ b/configure.py @@ -932,7 +932,7 @@ LIBS = [ "musyx/synthvoice", ["musyx/synth_ac", True], "musyx/synth_adsr", - "musyx/synth_vsamples", + ["musyx/synth_vsamples", False], ["musyx/synth_dbtab", True], "musyx/s_data", "musyx/hw_dspctrl", diff --git a/include/musyx/musyx_priv.h b/include/musyx/musyx_priv.h index 68b5c7ea..f59ec9d3 100644 --- a/include/musyx/musyx_priv.h +++ b/include/musyx/musyx_priv.h @@ -70,6 +70,19 @@ typedef struct DSPVoice { u32 itdFlags; } 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; typedef s32 (*SND_COMPARE)(u16*, u8*); diff --git a/src/musyx/synth_vsamples.c b/src/musyx/synth_vsamples.c new file mode 100644 index 00000000..e2495bc5 --- /dev/null +++ b/src/musyx/synth_vsamples.c @@ -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() { + +}