From f1d07c7572183362a1a3a1fc0cef8f2cf1d1e321 Mon Sep 17 00:00:00 2001 From: qwertymodo Date: Thu, 3 Nov 2016 13:17:12 -0700 Subject: [PATCH] Actually mix MSU sample instead of adding the DSP twice. --- apu/apu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apu/apu.cpp b/apu/apu.cpp index 6a83d300..925372a3 100644 --- a/apu/apu.cpp +++ b/apu/apu.cpp @@ -343,8 +343,8 @@ bool8 S9xMixSamples (uint8 *buffer, int sample_count) int16 s1, s2; ((uint8 *)&s1)[0] = dest[i]; ((uint8 *)&s1)[1] = dest[i + 1]; - ((uint8 *)&s2)[0] = dest[i]; - ((uint8 *)&s2)[1] = dest[i + 1]; + ((uint8 *)&s2)[0] = msu_sample[i]; + ((uint8 *)&s2)[1] = msu_sample[i + 1]; s1 += s2; dest[i] = ((uint8 *)&s1)[0]; dest[i+1] = ((uint8 *)&s1)[1];