FS#9213 - Fix for audio dropout after startup
Opened by Martin Buck (foobar12345) - Friday, 25 July 2008, 22:54 GMT
Last edited by Solomon Peachy (pizza) - Tuesday, 20 August 2019, 11:18 GMT
|
DetailsSince a few weeks, I've been noticing short audio dropouts a few seconds after starting Rockbox on an iAudio X5. I haven't changed any settings recently (at least I can't remember anything :-) and I haven't done any Rockbox software upgrades. My guess is that's it's caused by my disk becoming more and more filled.
Using the debug log, I noticed that the dropouts happen after the "reverse scan..." message. The "audio thread" debug menu showed me that the dropouts are caused by PCM buffer underruns. So I added a yield()-call to the check_deleted_files() function and the dropouts were gone. The patch below is against the latest SVN version. I tested it with an older Rockbox version, but the code looks sufficiently similar that I don't see why this shouldn't also work with the latest trunk. Could somebody please apply it? |
Tuesday, 20 August 2019, 11:18 GMT
Reason for closing: Accepted
Additional comments about closing: It only took ten years to merge this!
See 293e3e0fd7.
It seems that it fixes the drop out: me too I have a quite full HD (ipod video 80 GB, about 65 GB used).
But I want to test it more.
But the problem still happens more times when the DAP is rebuilding the dircache.
I think that in this case the problem has a different nature.
The HD is quite full, I will try to perform a "defrag" like operation, then I will inform you about the result
The dropouts are disappeared!
Just for curiosity, I would like to test with a daily build, without this patch.
Thank you very much.