From 87ffccafa946c81b98dc8e7e0d4fd15358b388de Mon Sep 17 00:00:00 2001 From: Lywx Date: Sun, 26 Jan 2025 21:30:43 -0600 Subject: [PATCH] Removed unnecesary dma call that crashes when using asan (#177) --- src/audio/synthesis.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/audio/synthesis.c b/src/audio/synthesis.c index 30d5a6f0b..aecf4e732 100644 --- a/src/audio/synthesis.c +++ b/src/audio/synthesis.c @@ -472,9 +472,10 @@ Acmd* synthesis_process_note(s32 noteIndex, struct NoteSubEu* noteSubEu, struct if (audioBookSample->loaded == 0x81) { // sm64 has audioBookSample->medium var_a0_2 = (temp_t6 * 9) + sampleAddr; } else { - var_a0_2 = - dma_sample_data((uintptr_t) (temp_t6 * 9) + sampleAddr, ALIGN(((loopInfo_2 * 9) + 16), 4), - flags, &synthesisState->sampleDmaIndex); + var_a0_2 = (temp_t6 * 9) + sampleAddr; + // var_a0_2 = + // dma_sample_data((uintptr_t) (temp_t6 * 9) + sampleAddr, ALIGN(((loopInfo_2 * 9) + 16), 4), + // flags, &synthesisState->sampleDmaIndex); // unsure flags? }