From e70b270e717086590e1b36f848afe18b0363a8ed Mon Sep 17 00:00:00 2001 From: Exzap <13877693+Exzap@users.noreply.github.com> Date: Mon, 8 Jun 2026 17:22:35 +0200 Subject: [PATCH] sndcore: Small fix and cleanup --- src/Cafe/OS/libs/snd_core/ax_mix.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Cafe/OS/libs/snd_core/ax_mix.cpp b/src/Cafe/OS/libs/snd_core/ax_mix.cpp index 59d1552e..02483cf4 100644 --- a/src/Cafe/OS/libs/snd_core/ax_mix.cpp +++ b/src/Cafe/OS/libs/snd_core/ax_mix.cpp @@ -498,8 +498,8 @@ namespace snd_core } else { - // voice not playing -> sample is silent - historySamples[historyIndex] = s; + // voice not playing -> repeat previous sample + historySamples[prevIndex] = s; } currentFracPos -= 0x10000; } @@ -969,10 +969,8 @@ namespace snd_core sint32* output = __AXTVOutputBuffer.GetPtr(); cemu_assert_debug(masterVolume == 0x8000); // todo -> Calculate delta between old master volume and new volume sint16 delta = 0; - uint16 volVar; for (uint16 c = 0; c < AX_TV_CHANNEL_COUNT; c++) { - volVar = _swapEndianU16(masterVolume); AXMix_MergeBusSamples(input, output, sampleCount, masterVolume, delta); output += sampleCount; input += sampleCount;