Don't update the music stream as often
This commit is contained in:
parent
fd32101a41
commit
6870834dc9
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ void Playback::ThreadFunc() {
|
||||||
flag_mutex.unlock();
|
flag_mutex.unlock();
|
||||||
}
|
}
|
||||||
position = GetMusicTimePlayed(music);
|
position = GetMusicTimePlayed(music);
|
||||||
std::this_thread::sleep_for(5ms);
|
std::this_thread::sleep_for(20ms);
|
||||||
}
|
}
|
||||||
UnloadMusicStream(music);
|
UnloadMusicStream(music);
|
||||||
CloseAudioDevice();
|
CloseAudioDevice();
|
||||||
|
|
Loading…
Reference in a new issue