[Alsaplayer-devel] Delay while queueing vorbis files

Ivan Stepaniuk ivan at risco.com.ar
Sun Nov 13 21:15:39 GMT 2005


hi, i'm using 

Pentium 233MHz,mmx 128MB RAM
linux-2.6.8-2-386 on Debian
alsaplayer-0.99.76-0
libvorbis0a-1.1.0-1
libvorbisfile3-1.1.0-1
libogg0-1.1.2-1

queueing a bunch of (more than 100) mp3 files is quite fast (~1sec)

but, queueing ogg files the same way is sssslllooowww. for 14 ogg files
  $alsaplayer --clear
  $alsaplayer -e ./*.ogg
it takes 43 seconds, killing the cpu 
 
  $alsaplayer *.ogg 
also takes that time. same with -i text.


here is $ogginfo output for one of these all similar ogg files:
  New logical stream (#1, serial: 60987ec1): type vorbis
  Vorbis headers parsed for stream 1, information follows...
  Version: 0
  Vendor: Xiph.Org libVorbis I 20030909 (1.0.1)	
  Channels: 2
  Rate: 44100

  Nominal bitrate: 192.003000 kb/s
  Upper bitrate not set
  Lower bitrate not set
  User comments section follows...
        ARTIST=Blah
        ALBUM=Blah
        TITLE=Some
        DATE=2000
        GENRE=Latin
        TRACKNUMBER=01
        CDDB=xxxxxxxx
  Vorbis stream 1:
        Total data length: 4384298 bytes
        Playback length: 3m:22.666s
        Average bitrate: 173.064395 kbps
  Logical stream 1 ended
.

Note that for those 14 ogg files, doing:
  $ogginfo *.ogg
takes only ~14 seconds (wich is slow, but not as alsaplayer's 43
seconds!).

my current workarraound is to do something like:
  $alsaplayer --clear; for x in ./*.ogg ; do  alsaplayer -e "$x" ; done
so the rest of the files are queued while playing the first one, wich
gives me 4 seconds of delay before the actual playback, much better than
43 seconds, but still not acceptable for me.

  $ogg123 *.ogg 
takes less than a second to start playing those 14 files, or even to
skip files with ctrl+c on the same box.

is there a way to improve this, or some starting "clue" to write a
patch?

thanks in advance, and sorry for my english.

-- 
Ivan Stepaniuk <ivan at risco.com.ar>




More information about the alsaplayer-devel mailing list