mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
Fix crash playing music on Windows (thanks ThatGuyJerry)
This commit is contained in:
parent
919045f7ce
commit
579027fda2
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user