diff --git a/src/include/types.h b/src/include/types.h index b64075df3..f023a703b 100644 --- a/src/include/types.h +++ b/src/include/types.h @@ -2143,7 +2143,10 @@ struct sndstate { /*0x34*/ u32 unk34; /*0x38*/ u32 unk38; /*0x3c*/ u32 unk3c; - /*0x40*/ u32 unk40; + /*0x40*/ u8 unk40; + /*0x41*/ u8 unk41; + /*0x42*/ u8 unk42; + /*0x43*/ u8 unk43; /*0x44*/ u8 flags; /*0x45*/ u8 playing; #if VERSION >= VERSION_NTSC_1_0 diff --git a/src/lib/naudio/n_sndplayer.c b/src/lib/naudio/n_sndplayer.c index 44971dffb..641e6a980 100644 --- a/src/lib/naudio/n_sndplayer.c +++ b/src/lib/naudio/n_sndplayer.c @@ -3347,20 +3347,12 @@ void sndpFreeState(struct sndstate *state) } } -GLOBAL_ASM( -glabel func000337c8 -/* 337c8: 30a500ff */ andi $a1,$a1,0xff -/* 337cc: 10800004 */ beqz $a0,.L000337e0 -/* 337d0: 00000000 */ nop -/* 337d4: 00057400 */ sll $t6,$a1,0x10 -/* 337d8: 000e7c03 */ sra $t7,$t6,0x10 -/* 337dc: a08f0040 */ sb $t7,0x40($a0) -.L000337e0: -/* 337e0: 03e00008 */ jr $ra -/* 337e4: 00000000 */ nop -/* 337e8: 03e00008 */ jr $ra -/* 337ec: 00000000 */ nop -); +void func000337c8(struct sndstate *state, u8 arg1) +{ + if (state) { + state->unk40 = (s16)arg1; + } +} bool audioIsPlaying(struct sndstate *state) {