[MPlayer-users] Latest SVN audio sync & high cpu usage with channels=6
Jesús Guerrero
i92guboj at terra.es
Fri Oct 2 19:20:16 CEST 2009
On Tue, 29 Sep 2009 16:32:19 +0200, Jesús Guerrero <i92guboj at terra.es>
wrote:
> On Tue, 29 Sep 2009 16:23:59 +0200, Reimar Döffinger
> <Reimar.Doeffinger at gmx.de> wrote:
>> 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.
>
> It happens only with ac3 files, and only when I enable surround (using
> stereo they work fine). I can't guarantee that it happens in all the
files,
> but it happens in all the files I tried when this two conditions are
met.
>
> I really long for the day that Linux will have a working unified sound
> system with midi support that's broadly support by all the applications,
> which is what keeps from away from oss4.
29748 seems to have solved the issue for me, it seems. Thank you everyone
for all the help and the attention.
--
Jesús Guerrero
More information about the MPlayer-users
mailing list