mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -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 {
|
} else {
|
||||||
/* Wait until the buffers finished playing */
|
/* Wait until the buffers finished playing */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (Audio_Poll(&music_ctx, &inUse) || inUse > 0) break;
|
if (Audio_Poll(&music_ctx, &inUse) || inUse == 0) break;
|
||||||
Thread_Sleep(10);
|
Thread_Sleep(10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user