mirror of
https://github.com/yawut/SDL.git
synced 2026-08-25 10:14:57 -05:00
audio/wiiu: don't wait if device is not enabled
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user