changeset 3137:b9ee2d8d7279

Audio delay bugfix
author anders
date Mon, 26 Nov 2001 11:30:35 +0000
parents b196b915fdc4
children 4c6f41e35d30
files libao2/ao_oss.c libao2/ao_sdl.c libao2/ao_sun.c
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_oss.c	Mon Nov 26 02:20:51 2001 +0000
+++ b/libao2/ao_oss.c	Mon Nov 26 11:30:35 2001 +0000
@@ -110,7 +110,7 @@
     return 0;
   }
 
-  ao_data.bps=(channels+1)*rate;
+  ao_data.bps=channels*rate;
   if(format != AFMT_U8 && format != AFMT_S8)
     ao_data.bps*=2;
 
--- a/libao2/ao_sdl.c	Mon Nov 26 02:20:51 2001 +0000
+++ b/libao2/ao_sdl.c	Mon Nov 26 11:30:35 2001 +0000
@@ -144,7 +144,7 @@
 		printf("SDL: using %s audio driver\n", ao_subdevice);
 	}
 
-	ao_data.bps=(channels+1)*rate;
+	ao_data.bps=channels*rate;
 	if(format != AFMT_U8 && format != AFMT_S8)
 	  ao_data.bps*=2;
 	
--- a/libao2/ao_sun.c	Mon Nov 26 02:20:51 2001 +0000
+++ b/libao2/ao_sun.c	Mon Nov 26 11:30:35 2001 +0000
@@ -459,6 +459,6 @@
     if (info.play.samples && enable_sample_timing == RTSC_ENABLED)
 	return (float)(queued_samples - info.play.samples) / (float)byte_per_sec;
     else
-	return (flaot)((queued_bursts - info.play.eof) * ao_data.outburst) / (float)byte_per_sec;
+	return (float)((queued_bursts - info.play.eof) * ao_data.outburst) / (float)byte_per_sec;
 }