[prev in list] [next in list] [prev in thread] [next in thread] 

List:       alsaplayer-devel
Subject:    Re: [Alsaplayer-devel]Dead time between tracks...
From:       Frank Baumgart <godot () uni-paderborn ! de>
Date:       2003-09-02 0:08:05
[Download RAW message or body]

Hi Mark,

to reduce latency ("dead air") you could reduce the number of pre-decoded
buffers when a new title is started. (assuming you are listening to 
mp3/ogg files).
This can be done in "app/CorePlayer.cpp", CorePlayer::Start()
Look for:

while (--tries && (FilledBuffers() < NR_CBUF / 2) && producing) {

and replace this with:

while (--tries && (FilledBuffers() < 2) && producing) {

If you hear dropouts on start, try slightly larger values than 2.


Also try removing the "dosleep(40000)" or set the value to 10000.


This workaround will only work well for reasonably modern CPUs while
being detrimental to small systems.
(small systems: requiring > 30% CPU time for mp3/ogg decoding)


Taking all these measures should at least significantly reduce "dead air"
but will not remove it entirely. At last, check the "--crossfade" option.
I did not try it myself yet but from the source I think you might have to
alter the overlap time to achieve what you want.

Bye,

Frank


_______________________________________________
alsaplayer-devel mailing list
alsaplayer-devel@lists.tartarus.org
http://lists.tartarus.org/mailman/listinfo/alsaplayer-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic