diff libao2/ao_sdl.c @ 7660:7ff053498bf2

fill ao_data correctly
author arpi
date Mon, 07 Oct 2002 20:01:28 +0000
parents 0380dfad2db9
children 7674e94baff7
line wrap: on
line diff
--- a/libao2/ao_sdl.c	Mon Oct 07 19:56:26 2002 +0000
+++ b/libao2/ao_sdl.c	Mon Oct 07 20:01:28 2002 +0000
@@ -160,6 +160,10 @@
 		printf("SDL: using %s audio driver\n", ao_subdevice);
 	}
 
+	ao_data.channels=channels;
+	ao_data.samplerate=rate;
+	ao_data.format=format;
+
 	ao_data.bps=channels*rate;
 	if(format != AFMT_U8 && format != AFMT_S8)
 	  ao_data.bps*=2;