Mercurial > sdl-ios-xcode
changeset 3360:dc6384958091
Use new 1.3 API for getting audio driver name.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sat, 10 Oct 2009 06:39:59 +0000 |
parents | aecbdf3362c3 |
children | d559edc85610 |
files | test/loopwave.c |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/test/loopwave.c Sat Oct 10 06:32:11 2009 +0000 +++ b/test/loopwave.c Sat Oct 10 06:39:59 2009 +0000 @@ -64,14 +64,9 @@ 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 @@ /* 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 */