From 759b497c077535b0cffa724aad19033135664c09 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 10 Jun 2016 16:38:20 +0300 Subject: [PATCH] Fixed bug introduced by the stereo support --- Core/apu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/apu.c b/Core/apu.c index ad1dd79..371bcc2 100644 --- a/Core/apu.c +++ b/Core/apu.c @@ -89,6 +89,7 @@ void apu_render(GB_gameboy_t *gb, unsigned long sample_rate, unsigned long n_sam gb->io_registers[GB_IO_PCM_12] |= (((int)sample) * 0xF / MAX_CH_AMP) << 4; } + if (gb->apu.wave_enable) { int16_t sample = generate_wave(gb->apu.wave_channels[2].phase, MAX_CH_AMP,