Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Removed incorrect SDL_GetAudioDeviceName() call from loopwave.c.

SDL_GetAudioDeviceName(1, 0) does not mean "name of the default output device."
  • Loading branch information
icculus committed Jan 11, 2010
1 parent 00431e4 commit 7527e341631b4cd7c60c178c104e153d5bcc00b7
Showing with 0 additions and 4 deletions.
  1. +0 −4 test/loopwave.c
@@ -102,11 +102,7 @@ main(int argc, char *argv[])
quit(2);
}

/* 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_GetCurrentAudioDriver());
printf("Using audio device: %s\n", SDL_GetAudioDeviceName(1, 0));

/* Let the audio run */
SDL_PauseAudio(0);

0 comments on commit 7527e34

Please sign in to comment.