Mercurial > sdl-ios-xcode
diff test/loopwave.c @ 3789:e2f68b579a01 SDL-ryan-multiple-audio-device
Added testaudioinfo.c ...
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 03 Oct 2006 20:05:33 +0000 |
parents | c121d94672cb |
children | 5c14978b1e97 |
line wrap: on
line diff
--- a/test/loopwave.c Tue Oct 03 18:32:34 2006 +0000 +++ b/test/loopwave.c Tue Oct 03 20:05:33 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);