From 78f3a456a743ecef000c0c14e090b52e185798a3 Mon Sep 17 00:00:00 2001 From: PurpleHato Date: Mon, 15 Apr 2024 03:33:26 +0200 Subject: [PATCH] Fix audio cutoff issues (#195) This fix the audio cutoff issues when building in release mode Explaination from @garrettjoecox The result of osAiSetFrequency was being used later on to multiply the length an audio sequence would play. In debug mode this stub was returning 1, whereas in release mode this would return whatever was passed in as the freq argument. Co-authored-by: Garrett Cox --- mm/src/code/stubs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/src/code/stubs.c b/mm/src/code/stubs.c index 7ca966068..db3badafc 100644 --- a/mm/src/code/stubs.c +++ b/mm/src/code/stubs.c @@ -340,6 +340,7 @@ u32 __osProbeTLB(void* param_1) { void func_801A31EC(u16 seqId, s8 arg1, u8 arg2) { } s32 osAiSetFrequency(u32 frequency) { + return 1; } s32 osContStartQuery(OSMesgQueue* mq) { }