From ed1d36ac86cbb6dc0a48cf57be47f2b46ee0a906 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Sun, 25 Oct 2020 12:04:15 -0700 Subject: [PATCH] sound: Fix bug where gain was doubly-applied in some cases. (cherry picked from commit 0e4e6a5db7c0d7adc83fbaaad2dc841918a7781b) --- src/emu/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/sound.cpp b/src/emu/sound.cpp index 3d235ab8151..139e6339089 100644 --- a/src/emu/sound.cpp +++ b/src/emu/sound.cpp @@ -532,7 +532,7 @@ read_stream_view sound_stream_input::update(attotime start, attotime end) m_resampler_source->set_end_time(end); // update the source, returning a view of the needed output over the start and end times - return source.stream().update_view(start, end, source.index()).apply_gain(m_gain * m_user_gain * m_native_source->gain()); + return source.stream().update_view(start, end, source.index()).apply_gain(m_gain * m_user_gain * source.gain()); }