summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2026-03-11 04:02:55 +0100
committer hap <happppp@users.noreply.github.com>2026-03-11 04:02:55 +0100
commit967f3636c8190abb2519e5f4a7e02c494eb05381 (patch)
treed47f79ab984e3ef1ef0b6bb160787bd807453eba /src/emu
parent03fa21d73eadb3fd2527e870e86ab39ab5ddba09 (diff)
sound: change abuffer resync to more abrupt
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/sound.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/emu/sound.cpp b/src/emu/sound.cpp
index b796820772d..3016564d61e 100644
--- a/src/emu/sound.cpp
+++ b/src/emu/sound.cpp
@@ -1158,16 +1158,14 @@ void sound_manager::run_effects()
for(auto &si : m_speakers)
si.m_effects.back().m_buffer.sync();
- if(!(m_muted & (MUTE_REASON_PAUSE | MUTE_REASON_UI | MUTE_REASON_DEBUGGER))) {
- machine().osd().sound_begin_update();
+ machine().osd().sound_begin_update();
- // Send the result to the osd
- for(auto &stream : m_osd_output_streams)
- if(stream.m_samples)
- machine().osd().sound_stream_sink_update(stream.m_id, stream.m_buffer.data(), stream.m_samples);
+ // Send the result to the osd
+ for(auto &stream : m_osd_output_streams)
+ if(stream.m_samples)
+ machine().osd().sound_stream_sink_update(stream.m_id, stream.m_buffer.data(), stream.m_samples);
- machine().osd().sound_end_update();
- }
+ machine().osd().sound_end_update();
#ifndef SOUND_DISABLE_THREADING
dlock.lock();