changeset 1189:7c6bcb281966

sdl_adriver liquidated, ao_subdevice used
author al3x
date Thu, 21 Jun 2001 22:48:34 +0000
parents f0542c6a52c2
children 98f732a23cb4
files libao2/ao_sdl.c
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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) {