[MPlayer-cvslog] r25217 - trunk/libao2/ao_null.c

Uoti Urpala uoti.urpala at pp1.inet.fi
Sat Dec 1 01:33:59 CET 2007


On Sat, 2007-12-01 at 00:54 +0100, Reimar Döffinger wrote:
> On Sat, Dec 01, 2007 at 01:36:23AM +0200, Uoti Urpala wrote:
> > If you make buffersize depend on channel count you could go all the way
> > and make it depend on samplerate and samplesize to buffer a constant
> > duration of audio.
> 
> Unless I want to buffer a full second I'd have to do a division and
> quite a bit of additional checking mess, which seemed like a pointless
> effort to me.

I don't see what would be that complicated, but I'll do it myself then
if you find it so hard...

> This change was enough to make it work on all my sample files again.

If all you care about is a particular set of sample files you could
probably find a constant other than the original 65536 which would work
for all of them, without any logic based on the file parameters. Sample
rates change at least as much as channel counts (I've seen multiple
files with both 8000 and 96000, a ratio of 1:12). 




More information about the MPlayer-cvslog mailing list