From e9d0d50a6631284bc9db06323a99b7b34a9276f1 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 10 Oct 2009 06:39:59 +0000 Subject: [PATCH] Use new 1.3 API for getting audio driver name. --- test/loopwave.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/loopwave.c b/test/loopwave.c index 5628745ff..9278b0ccc 100644 --- a/test/loopwave.c +++ b/test/loopwave.c @@ -64,14 +64,9 @@ poked(int sig) done = 1; } - -#define NAMESIZE 32 - int main(int argc, char *argv[]) { - char name[NAMESIZE]; - /* Load the SDL library */ if (SDL_Init(SDL_INIT_AUDIO) < 0) { fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError()); @@ -110,7 +105,7 @@ main(int argc, char *argv[]) /* Right now we're using the 1.2 SDL_OpenAudio(), but if we move to the 1.3 device enumeration version, we shouldn't hardcore device id #1 for SDL_GetAudioDeviceName(), below. */ - printf("Using audio driver: %s\n", SDL_AudioDriverName(name, NAMESIZE)); + printf("Using audio driver: %s\n", SDL_GetCurrentAudioDriver()); printf("Using audio device: %s\n", SDL_GetAudioDeviceName(1, 0)); /* Let the audio run */