test/testmultiaudio.c
changeset 9269 d51f84c20b10
parent 9145 aa99e029b12e
child 9277 743c0a496aa8
--- a/test/testmultiaudio.c	Tue Dec 09 22:49:16 2014 +0100
+++ b/test/testmultiaudio.c	Wed Dec 10 21:10:55 2014 +0100
@@ -54,6 +54,7 @@
 #ifdef __ANDROID__  
     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);
 #endif
 
@@ -79,6 +80,7 @@
             SDL_PauseAudioDevice(cbd[0].dev, 0);
             while (!cbd[0].done) {
 #ifdef __ANDROID__                
+                /* Empty queue, some application events would prevent pause. */
                 while (SDL_PollEvent(&event)){}
 #endif                
                 SDL_Delay(100);
@@ -115,6 +117,7 @@
             }
         }
 #ifdef __ANDROID__        
+        /* Empty queue, some application events would prevent pause. */
         while (SDL_PollEvent(&event)){}
 #endif        
         SDL_Delay(100);