Hi,
since 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 a SVN version from a few days ago. 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?
Thanks,
Martin
diff -ur rockbox-18082.orig/apps/tagcache.c rockbox-18082/apps/tagcache.c
--- rockbox-18082.orig/apps/tagcache.c 2008-07-17 12:45:26.000000000 +0200
+++ rockbox-18082/apps/tagcache.c 2008-07-17 14:34:05.000000000 +0200
@@ -4055,6 +4055,8 @@
logf("-> %s / %d", buf, tfe.tag_length);
delete_entry(tfe.idx_id);
}
+
+ do_timed_yield();
}
close(fd);