[MPlayer-users] Latest SVN audio sync & high cpu usage with channels=6

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Sep 29 16:23:59 CEST 2009


On Tue, Sep 29, 2009 at 03:23:52PM +0200, Jesús Guerrero wrote:
> On Tue, 29 Sep 2009 10:09:39 +0200, Reimar Döffinger
> <Reimar.Doeffinger at gmx.de> wrote:
> > 3) add the patch even further below and tell me what changes (if
> > anything)?
> > 
> > Index: libao2/ao_alsa.c
> > ===================================================================
> > --- libao2/ao_alsa.c    (revision 29731)
> > +++ libao2/ao_alsa.c    (working copy)
> > @@ -763,8 +763,10 @@
> >  
> >  static int play(void* data, int len, int flags)
> >  {
> > -  int num_frames = len / bytes_per_sample;
> > +  int num_frames;
> >    snd_pcm_sframes_t res = 0;
> > +  len = len / ao_data.outburst * ao_data.outburst;
> > +  num_frames = len / bytes_per_sample;
> >  
> >    //mp_msg(MSGT_AO,MSGL_ERR,"alsa-play: frames=%i,
> >    //len=%i\n",num_frames,len);
> 
> Attached output as patch2.output.txt.bz2, this patch solves the problem
> completely, in the attached log, the A-V sync is always zero :)

Ok, so it is that old issue then. I would think it really shouldn't happen
with all your files then, useless ALSA extremely dislikes when it
doesn't get a full outburst.


More information about the MPlayer-users mailing list