test/loopwave.c
changeset 2049 5f6550e5184f
parent 1895 c121d94672cb
child 2145 5c14978b1e97
     1.1 --- a/test/loopwave.c	Sun Oct 01 16:10:41 2006 +0000
     1.2 +++ b/test/loopwave.c	Tue Oct 17 09:15:21 2006 +0000
     1.3 @@ -69,26 +69,12 @@
     1.4  {
     1.5      int i, n;
     1.6  
     1.7 -    /* Print available audio drivers */
     1.8 -    n = SDL_GetNumAudioDrivers();
     1.9 -    if (n == 0) {
    1.10 -        printf("No built-in audio drivers\n");
    1.11 -    } else {
    1.12 -        printf("Built-in audio drivers:");
    1.13 -        for (i = 0; i < n; ++i) {
    1.14 -            if (i > 0) {
    1.15 -                printf(",");
    1.16 -            }
    1.17 -            printf(" %s", SDL_GetAudioDriver(i));
    1.18 -        }
    1.19 -        printf("\n");
    1.20 -    }
    1.21 -
    1.22      /* Load the SDL library */
    1.23      if (SDL_Init(SDL_INIT_AUDIO) < 0) {
    1.24          fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
    1.25          return (1);
    1.26      }
    1.27 +
    1.28      if (argv[1] == NULL) {
    1.29          argv[1] = "sample.wav";
    1.30      }
    1.31 @@ -120,7 +106,6 @@
    1.32      SDL_PauseAudio(0);
    1.33  
    1.34      /* Let the audio run */
    1.35 -    printf("Using audio driver: %s\n", SDL_GetCurrentAudioDriver());
    1.36      while (!done && (SDL_GetAudioStatus() == SDL_AUDIO_PLAYING))
    1.37          SDL_Delay(1000);
    1.38