diff options
| author | 2025-05-12 07:21:21 +0200 | |
|---|---|---|
| committer | 2025-05-12 07:22:02 +0200 | |
| commit | 9d64f84eca5d11c90bde809e567043b8fc20ebdb (patch) | |
| tree | 52bbbf136d4461a938e883a1e9dc0f5e2dec6d49 | |
| parent | e9ff892164fe44cdb0dd61566b92d1d5430c2b08 (diff) | |
sound: Fix synchronous streams
| -rw-r--r-- | makefile | 2 | ||||
| -rw-r--r-- | src/emu/sound.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -73,7 +73,7 @@ # USE_SYSTEM_LIB_LUA = 1 # USE_SYSTEM_LIB_SQLITE3 = 1 # USE_SYSTEM_LIB_PORTMIDI = 1 -# USE_SYSTEM_LIB_PORTAUDIO = 1 +USE_SYSTEM_LIB_PORTAUDIO = 1 # USE_SYSTEM_LIB_UTF8PROC = 1 # USE_SYSTEM_LIB_GLM = 1 # USE_SYSTEM_LIB_RAPIDJSON = 1 diff --git a/src/emu/sound.cpp b/src/emu/sound.cpp index 2326f7985f3..ac4132f1492 100644 --- a/src/emu/sound.cpp +++ b/src/emu/sound.cpp @@ -635,7 +635,7 @@ void sound_stream::reprime_sync_timer() if(!is_active()) return; - u64 next_sample = m_output_buffer.write_sample() + 1; + u64 next_sample = m_output_buffer.write_sample(); attotime next_time = sample_to_time(next_sample); next_time.m_attoseconds += 1'000'000'000; // Go to the next nanosecond ' m_sync_timer->adjust(next_time - m_device.machine().time()); |
