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

Jesús Guerrero i92guboj at terra.es
Thu Sep 24 23:56:17 CEST 2009


On Thu, 24 Sep 2009 23:41:19 +0200, Reimar Döffinger
<Reimar.Doeffinger at gmx.de> wrote:
> On Thu, Sep 24, 2009 at 11:26:44PM +0200, Jesús Guerrero wrote:
>> I didn't notice first time, but you are right, with oss the cpu is much
>> lower. So the problem could be in the interaction of alsa with the
>> current
>> svn. I am using the in-kernel alsa modules from 2.6.30, snd_ca0106. And
>> if
>> this is an alsa problem it won't be the first one, nor the last that
hits
>> me I suppose.
> 
> I say sorry in advance for being snarky in the next few sentences,
but...
> Recently quite a few hacks were removed from MPlayer's ALSA code,
probably
> assuming that ALSA might finally be working properly...
> I'd suggest to try different versions of ao_alsa by doing
> svn up -r123 libao2/ao_alsa.c
> where you replace 123 by e.g.
> 29478
> 29443
> 29428
> 29305
> 
> Unless broken by the WORDS_BIGENDIAN -> HAVE_BIGENDIAN change, that last
> one is from May, so should be working at least if that's what caused the
> issue...
> Personally I suspect r29549 to be the cause.

29549 is the first one that I can compile against current mplayer (and it
exhibits this same problem), 29548 will not compile:

$ make
cc -MM -Wundef -Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith
-Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math
-fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.  -D_REENTRANT
-I/usr/include/directfb  -I/usr/include/SDL  -D_REENTRANT 
-I/usr/include/freetype2   -I/usr/include/dirac  
-I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3    
libao2/ao_alsa.c | sed -e "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&," -e
"s,\(.*\)\.o: ,\1.d &," > libao2/ao_alsa.d
cc -Wundef -Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith
-Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math
-fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.  -D_REENTRANT
-I/usr/include/directfb  -I/usr/include/SDL  -D_REENTRANT 
-I/usr/include/freetype2   -I/usr/include/dirac  
-I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3     -c -o
libao2/ao_alsa.o libao2/ao_alsa.c
libao2/ao_alsa.c: In function 'init':
libao2/ao_alsa.c:647: error: 'MSGTR_AO_ALSA_UnableToSetPeriodSize'
undeclared (first use in this function)
libao2/ao_alsa.c:647: error: (Each undeclared identifier is reported only
once
libao2/ao_alsa.c:647: error: for each function it appears in.)
make: *** [libao2/ao_alsa.o] Error 1

-- 
Jesús Guerrero


More information about the MPlayer-users mailing list