diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-15 10:12:41 -0400 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-06-16 14:14:35 -0400 |
commit | 90792cdb6ea8f1676bd54309767209a4ec84a46f (patch) | |
tree | eae330371459c0f9b71fcbf1c68e2fb01d19e294 /src/audio_core/stream.cpp | |
parent | 7e2bcf04b471579054424fd26746826747c0d335 (diff) |
Core_Timing: Make core_timing threadsafe by default.
The old implementation had faulty Threadsafe methods where events could
be missing. This implementation unifies unsafe/safe methods and makes
core timing thread safe overall.
Diffstat (limited to 'src/audio_core/stream.cpp')
-rw-r--r-- | src/audio_core/stream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/stream.cpp b/src/audio_core/stream.cpp index 11481a776f..426e38b45f 100644 --- a/src/audio_core/stream.cpp +++ b/src/audio_core/stream.cpp @@ -101,7 +101,7 @@ void Stream::PlayNextBuffer() { sink_stream.EnqueueSamples(GetNumChannels(), active_buffer->GetSamples()); - core_timing.ScheduleEventThreadsafe(GetBufferReleaseCycles(*active_buffer), release_event, {}); + core_timing.ScheduleEvent(GetBufferReleaseCycles(*active_buffer), release_event, {}); } void Stream::ReleaseActiveBuffer() { |