# HG changeset patch # User attila # Date 1056317355 0 # Node ID 30b9deee1235bc3aab25070af027e40d6c05ccac # Parent f9efbb336ebba304efcbb36594fa6ec1da379a8b fix bps calculation when resampling, patch by Marcus Comstedt diff -r f9efbb336ebb -r 30b9deee1235 libao2/ao_sun.c --- 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__