changeset 10325:30b9deee1235

fix bps calculation when resampling, patch by Marcus Comstedt <marcus (at) mc.pp.se>
author attila
date Sun, 22 Jun 2003 21:29:15 +0000
parents f9efbb336ebb
children 90c9fe8b04ab
files libao2/ao_sun.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_sun.c	Sun Jun 22 19:21:40 2003 +0000
+++ b/libao2/ao_sun.c	Sun Jun 22 21:29:15 2003 +0000
@@ -562,7 +562,7 @@
     }
 
     bytes_per_sample = channels * info.play.precision / 8;
-    ao_data.bps = byte_per_sec = bytes_per_sample * rate;
+    ao_data.bps = byte_per_sec = bytes_per_sample * ao_data.samplerate;
     ao_data.outburst = byte_per_sec > 100000 ? 16384 : 8192;
 
 #ifdef	__not_used__