summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2020-10-25 12:04:15 -0700
committer hap <happppp@users.noreply.github.com>2020-10-25 21:43:33 +0100
commited1d36ac86cbb6dc0a48cf57be47f2b46ee0a906 (patch)
treebf2631e29a154c4720b691c979d92ead5031b816
parentbabfee94c5e50caddba63230e9eee293c66240f1 (diff)
sound: Fix bug where gain was doubly-applied in some cases.
(cherry picked from commit 0e4e6a5db7c0d7adc83fbaaad2dc841918a7781b)
-rw-r--r--src/emu/sound.cpp2
1 files changed, 1 insertions, 1 deletions
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());
}