diff --git a/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.cpp b/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.cpp index 1ef39165b..192ce6eb3 100644 --- a/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.cpp +++ b/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.cpp @@ -283,8 +283,8 @@ void es5506_core::voice_t::tick(u8 voice) if (m_alu.busy()) { // Send to output - m_output[0] = volume_calc(m_lvol, sign_ext(m_filter.o4_1(), 16)); - m_output[1] = volume_calc(m_rvol, sign_ext(m_filter.o4_1(), 16)); + m_output[0] = m_mute ? 0 : volume_calc(m_lvol, sign_ext(m_filter.o4_1(), 16)); + m_output[1] = m_mute ? 0 : volume_calc(m_rvol, sign_ext(m_filter.o4_1(), 16)); m_ch.set_left(m_output[0]); m_ch.set_right(m_output[1]); diff --git a/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.hpp b/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.hpp index 12e9982ea..ea8b5a8fb 100644 --- a/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.hpp +++ b/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.hpp @@ -27,7 +27,7 @@ class es5506_core : public es550x_shared_core { } - void reset() + inline void reset() { m_left = 0; m_right = 0; @@ -181,6 +181,8 @@ class es5506_core : public es550x_shared_core inline filter_ramp_t &k1ramp() { return m_k1ramp; } + inline bool muted() { return m_mute; } + output_t &ch() { return m_ch; } // for debug/preview only