mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-29 19:44:49 +02:00
Merge pull request #152 from Eblo/movie-audio-termination-bugfix
Check for audioThreadTermReq in movie audio thread
This commit is contained in:
commit
d2d46b282e
1 changed files with 3 additions and 0 deletions
|
@ -290,6 +290,9 @@ struct Movie
|
|||
|
||||
// Periodically check the buffers until one is available
|
||||
while(true) {
|
||||
// Quit if audio thread terminate request has been made
|
||||
if (audioThreadTermReq) return;
|
||||
|
||||
alGetSourcei(audioSource, AL_BUFFERS_PROCESSED, &procBufs);
|
||||
if(procBufs > 0) break;
|
||||
SDL_Delay(AUDIO_SLEEP);
|
||||
|
|
Loading…
Add table
Reference in a new issue