Fix crash playing music on Windows (thanks ThatGuyJerry)

This commit is contained in:
UnknownShadow200 2021-08-06 10:03:57 +10:00
parent 919045f7ce
commit 579027fda2

View File

@ -1016,7 +1016,7 @@ static cc_result Music_PlayOgg(struct Stream* source) {
} else {
/* Wait until the buffers finished playing */
for (;;) {
if (Audio_Poll(&music_ctx, &inUse) || inUse > 0) break;
if (Audio_Poll(&music_ctx, &inUse) || inUse == 0) break;
Thread_Sleep(10);
}
}