mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
sound: Fix bug where gain was doubly-applied in some cases.
(cherry picked from commit 0e4e6a5db7
)
This commit is contained in:
parent
babfee94c5
commit
ed1d36ac86
@ -532,7 +532,7 @@ read_stream_view sound_stream_input::update(attotime start, attotime end)
|
|||||||
m_resampler_source->set_end_time(end);
|
m_resampler_source->set_end_time(end);
|
||||||
|
|
||||||
// update the source, returning a view of the needed output over the start and end times
|
// 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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user