mirror of https://github.com/PrimeDecomp/prime.git
Add synth_vsamples
This commit is contained in:
parent
d593090766
commit
b61b8f5439
|
@ -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",
|
||||
|
|
|
@ -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*);
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
||||
}
|
Loading…
Reference in New Issue