diff test/loopwave.c @ 2049:5f6550e5184f

Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 17 Oct 2006 09:15:21 +0000
parents c121d94672cb
children 5c14978b1e97
line wrap: on
line diff
--- a/test/loopwave.c	Sun Oct 01 16:10:41 2006 +0000
+++ b/test/loopwave.c	Tue Oct 17 09:15:21 2006 +0000
@@ -69,26 +69,12 @@
 {
     int i, n;
 
-    /* Print available audio drivers */
-    n = SDL_GetNumAudioDrivers();
-    if (n == 0) {
-        printf("No built-in audio drivers\n");
-    } else {
-        printf("Built-in audio drivers:");
-        for (i = 0; i < n; ++i) {
-            if (i > 0) {
-                printf(",");
-            }
-            printf(" %s", SDL_GetAudioDriver(i));
-        }
-        printf("\n");
-    }
-
     /* Load the SDL library */
     if (SDL_Init(SDL_INIT_AUDIO) < 0) {
         fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
         return (1);
     }
+
     if (argv[1] == NULL) {
         argv[1] = "sample.wav";
     }
@@ -120,7 +106,6 @@
     SDL_PauseAudio(0);
 
     /* Let the audio run */
-    printf("Using audio driver: %s\n", SDL_GetCurrentAudioDriver());
     while (!done && (SDL_GetAudioStatus() == SDL_AUDIO_PLAYING))
         SDL_Delay(1000);