Mercurial > SDL_sound_CoreAudio
comparison playsound/playsound.c @ 406:325af3e2cbb3
Reset done_flag between files so everything plays correctly.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sun, 21 Jul 2002 15:18:40 +0000 |
parents | 3bd96d2d553c |
children | 0dbf37be0a5a |
comparison
equal
deleted
inserted
replaced
405:4ad617261a91 | 406:325af3e2cbb3 |
---|---|
1022 } /* else */ | 1022 } /* else */ |
1023 } /* if */ | 1023 } /* if */ |
1024 | 1024 |
1025 SDL_PauseAudio(0); | 1025 SDL_PauseAudio(0); |
1026 | 1026 |
1027 done_flag = 0; /* the audio callback will flip this flag. */ | |
1027 while (!done_flag) | 1028 while (!done_flag) |
1028 { | 1029 { |
1029 #if ENABLE_EVENTS | 1030 #if ENABLE_EVENTS |
1030 SDL_PollEvent(&event); | 1031 SDL_PollEvent(&event); |
1031 if ((event.type == SDL_KEYDOWN) || (event.type == SDL_QUIT)) | 1032 if ((event.type == SDL_KEYDOWN) || (event.type == SDL_QUIT)) |