Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Use new 1.3 API for getting audio driver name.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 10, 2009
1 parent dcc58bc commit e9d0d50
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/loopwave.c
Expand Up @@ -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());
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit e9d0d50

Please sign in to comment.