mirror of
https://github.com/yawut/SDL.git
synced 2026-04-23 00:57:24 -05:00
audio/wiiu: don't wait if device is not enabled
This commit is contained in:
parent
07f1d1f5e1
commit
d516577d4f
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user