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

Commit

Permalink
Removed incorrect SDL_GetAudioDeviceName() call from loopwave.c.
Browse files Browse the repository at this point in the history
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 7527e34
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/loopwave.c
Expand Up @@ -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);
Expand Down

0 comments on commit 7527e34

Please sign in to comment.