Rockbox mail archiveSubject: Re: Read errors
From: Björn Stenberg (bjorn_at_haxx.se)
Mike Holden wrote:
Silent play can be caused by a lot of other things too, such as miscalculation of the buffer watermark for example.
> I will continue to dig, however!
> Also, should the READ_TIMEOUT be max(5*HZ,<anti_skip_buffer_size>), since
The read timeout has nothing to do with how much data has successfully been read. As I explained earlier, each read operation is atomic. It either succeeds completely or fails completely. It cannot fail yet report some amount of data as read.
Giving up the read 2 seconds before the buffer runs out simply means we have 2 seconds to (try to) read the next file before playback stops.
Page was last modified "Jan 10 2012" The Rockbox Crew