[MPlayer-cygwin] [PATCH] ao directsound

Diego Biurrun diego at biurrun.de
Thu Sep 23 13:13:28 CEST 2004


On Thu, Sep 23, 2004 at 12:21:46PM +0000, Sascha Sommer wrote:
> > > Or play with the buffersize.
> >
> > This does somehow help.  Currently in ao_dsound.c there is
> >
> > #define BUFFERSIZE 32768
> >
> > If I change this to
> >
> > #define BUFFERSIZE 932768
> >
> > all problems go away.
> >
> > Nevertheless the values
> >
> > #define BUFFERSIZE 957504
> > #define BUFFERSIZE 917504
> >
> > don't work.  This completely mystifies me.
> 
> How do you define don't work?

I get the behavior described in my bug report.

> Try with smaller values (32768*2, *4 etc).

There seems to be a problem when the buffer size is a power of 2 or
something.  I just found out that

#define BUFFERSIZE 65536

fails, while

#define BUFFERSIZE 65556

works well.  It also works with

#define BUFFERSIZE 32767

Any clues what might be going on?

Diego




More information about the MPlayer-cygwin mailing list