From 6870834dc9478543d4f151c7718fe2cc7fc0aa57 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Sun, 9 Jul 2023 13:56:34 -0700 Subject: [PATCH] Don't update the music stream as often --- playback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playback.cpp b/playback.cpp index c830dc1..257cdc0 100644 --- a/playback.cpp +++ b/playback.cpp @@ -34,7 +34,7 @@ void Playback::ThreadFunc() { flag_mutex.unlock(); } position = GetMusicTimePlayed(music); - std::this_thread::sleep_for(5ms); + std::this_thread::sleep_for(20ms); } UnloadMusicStream(music); CloseAudioDevice();