audio/wiiu: don't wait if device is not enabled

This commit is contained in:
GaryOderNichts 2021-02-01 00:00:11 +01:00
parent 07f1d1f5e1
commit d516577d4f

View File

@ -334,7 +334,7 @@ static void WIIUAUDIO_PlayDevice(_THIS) {
static void WIIUAUDIO_WaitDevice(_THIS) {
/* TODO use real thread sync stuff */
while (this->hidden->renderingid == this->hidden->playingid) {
while (SDL_AtomicGet(&this->enabled) && this->hidden->renderingid == this->hidden->playingid) {
OSSleepTicks(OSMillisecondsToTicks(3));
}
}