Mercurial > mplayer.hg
comparison libao2/ao_sun.c @ 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 | 12b1790038b0 |
children | 99798c3cdb93 |
comparison
equal
deleted
inserted
replaced
10324:f9efbb336ebb | 10325:30b9deee1235 |
---|---|
560 channels, audio_out_format_name(format), rate); | 560 channels, audio_out_format_name(format), rate); |
561 return 0; | 561 return 0; |
562 } | 562 } |
563 | 563 |
564 bytes_per_sample = channels * info.play.precision / 8; | 564 bytes_per_sample = channels * info.play.precision / 8; |
565 ao_data.bps = byte_per_sec = bytes_per_sample * rate; | 565 ao_data.bps = byte_per_sec = bytes_per_sample * ao_data.samplerate; |
566 ao_data.outburst = byte_per_sec > 100000 ? 16384 : 8192; | 566 ao_data.outburst = byte_per_sec > 100000 ? 16384 : 8192; |
567 | 567 |
568 #ifdef __not_used__ | 568 #ifdef __not_used__ |
569 /* | 569 /* |
570 * hmm, ao_data.buffersize is currently not used in this driver, do there's | 570 * hmm, ao_data.buffersize is currently not used in this driver, do there's |