From b04192c865ad46bec77784becc61fe9b573d97bf Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Fri, 25 Feb 2022 17:26:58 +1000 Subject: [PATCH] Decompile snd0001034c --- src/lib/snd.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/lib/snd.c b/src/lib/snd.c index 5f2b7ab8b..3490d4dfd 100644 --- a/src/lib/snd.c +++ b/src/lib/snd.c @@ -2230,14 +2230,17 @@ void sndTick(void) } } -GLOBAL_ASM( -glabel func0001034c -/* 1034c: 309907ff */ andi $t9,$a0,0x7ff -/* 10350: 00194400 */ sll $t0,$t9,0x10 -/* 10354: afa40000 */ sw $a0,0x0($sp) -/* 10358: 03e00008 */ jr $ra -/* 1035c: 00081403 */ sra $v0,$t0,0x10 -); +s16 snd0001034c(s16 sfxnum) +{ + union soundnumhack sfxref; + + sfxref.packed = sfxnum; + sfxnum = sfxref.id; + + if (sfxref.id); + + return sfxnum; +} bool sndIsDisabled(void) {