Better decoder, minor refactoring

This commit is contained in:
Niellun
2025-06-02 13:54:15 +03:00
parent 44faedbbdd
commit cb13925433
9 changed files with 210 additions and 105 deletions
+1 -2
View File
@@ -149,9 +149,8 @@ void PcmAudio::runner()
SDL_AudioDeviceID device = 0;
SDL_AudioSpec spec;
while (_active)
while (_data->wait(_active))
{
_data->wait(_active, Settings::audioDelay);
const Message *segment = _data->peek();
if (!segment)
continue;