mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-04-16 21:46:03 +02:00
Added comments in example program.
This commit is contained in:
parent
fbbd593230
commit
45fa5642ea
@ -54,6 +54,7 @@ test_multi_audio(int devcount)
|
|||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
|
|
||||||
|
/* Create a Window to get fully initialized event processing for testing pause on Android. */
|
||||||
SDL_CreateWindow("testmultiaudio", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 320, 240, 0);
|
SDL_CreateWindow("testmultiaudio", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 320, 240, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -79,6 +80,7 @@ test_multi_audio(int devcount)
|
|||||||
SDL_PauseAudioDevice(cbd[0].dev, 0);
|
SDL_PauseAudioDevice(cbd[0].dev, 0);
|
||||||
while (!cbd[0].done) {
|
while (!cbd[0].done) {
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
|
/* Empty queue, some application events would prevent pause. */
|
||||||
while (SDL_PollEvent(&event)){}
|
while (SDL_PollEvent(&event)){}
|
||||||
#endif
|
#endif
|
||||||
SDL_Delay(100);
|
SDL_Delay(100);
|
||||||
@ -115,6 +117,7 @@ test_multi_audio(int devcount)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
|
/* Empty queue, some application events would prevent pause. */
|
||||||
while (SDL_PollEvent(&event)){}
|
while (SDL_PollEvent(&event)){}
|
||||||
#endif
|
#endif
|
||||||
SDL_Delay(100);
|
SDL_Delay(100);
|
||||||
|
Loading…
Reference in New Issue
Block a user