summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2020-10-25 12:04:15 -0700
committer Aaron Giles <aaron@aarongiles.com>2020-10-25 12:04:15 -0700
commit0e4e6a5db7c0d7adc83fbaaad2dc841918a7781b (patch)
tree5296769bcd97390d1a16302ac14a61cb2b92f59a /src/emu
parent20bdbf71b158f6b0d91f274030cadcb793edb6df (diff)
sound: Fix bug where gain was doubly-applied in some cases.
Diffstat (limited to 'src/emu')
-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());
}