# HG changeset patch # User al3x # Date 993163714 0 # Node ID 7c6bcb2819661d93c9e9b8bc61a626f53b9e0744 # Parent f0542c6a52c2d59cb2abfa1564185eef12f5f8af sdl_adriver liquidated, ao_subdevice used diff -r f0542c6a52c2 -r 7c6bcb281966 libao2/ao_sdl.c --- a/libao2/ao_sdl.c Thu Jun 21 22:47:55 2001 +0000 +++ b/libao2/ao_sdl.c Thu Jun 21 22:48:34 2001 +0000 @@ -38,8 +38,6 @@ // ao_buffersize extern int verbose; -/* audio driver to be used by SDLlib */ -char *sdl_adriver; // Samplesize used by the SDLlib AudioSpec struct #define SAMPLESIZE 1024 @@ -152,11 +150,10 @@ printf("SDL: Samplerate: %iHz Channels: %s Format %s\n", rate, (channels > 1) ? "Stereo" : "Mono", audio_out_format_name(format)); - if(sdl_adriver) { - setenv("SDL_AUDIODRIVER", sdl_adriver, 1); - printf("SDL: using %s audio driver\n", sdl_adriver); - } - + if(ao_subdevice) { + setenv("SDL_AUDIODRIVER", ao_subdevice, 1); + printf("SDL: using %s audio driver\n", ao_subdevice); + } /* The desired audio format (see SDL_AudioSpec) */ switch(format) {