- Status Closed
- Percent Complete
- Task Type Patches
- Category Music playback
- Assigned To No-one
- Operating System All players
- Severity Low
- Priority Very Low
- Reported Version Release 3.0
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#9703 - Better watermark handling
The current watermark handling is quite hardcoded at 512KB, which is a problem for targets with a small file buffer.
It is also of course not optimal for battery performance.
This patch instead calculates the watermark based on the bitrate of the last file in the buffer and the measured harddisk spinup time.
(This code is not ready for commit.)
Closed by zagor
2009-01-10 21:12
Reason for closing: Accepted
Additional comments about closing: Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407
2009-01-10 21:12
Reason for closing: Accepted
Additional comments about closing: Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407
Committed in r19743
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Massaged pcmbuf.c a bit. The pause/unpause bug is now fixed and also the excess boost is fixed.
Still to do:
In any case it needs documentation.
1) Understand pcmbuf.c better, in order to determine if I like how it works.
2) See if I can find a clean way to export buffering information to playback.c, in order to include total and buffered file size for the last track in the watermark algorithm.
I have tested this on Iriver H140, Sansa C200 and Sansa Clip so far. I would appreciate some test reports for other targets.
Doesn’t work at all here on my Fuze. I just hear a loud and constant hissing.
The debug screen shows that audio buffer decreased, but the pcm buffer apparently jumped back and forth between 2 values (the 2 values are constant it seems).
I tested with a Flac, other codecs (aac, vorbis, mp3) still don’t give any sound at all.
Fixed an issue where codec thread would not cancel its’ elevated priority.
Definitely better now, but the issues are still there.
Playing FLAC and Mp3 seems fine now.
However: Ogg still causes slowness. It’s much better than with watermark2, but the gui lags and backlight fade slowness are still very noticeable compared to SVN.
From the View OS stacks screen I can see, that with this patch codec is constantly *R. In SVN, it’s changes between +R, *R and S freqeuently. The numbers are the same (”16 16 18%”).
I need help repeating your problem. I cannot see any difference in backlight fade speed between mp3 and ogg on neither c200 or e200.
The codec thread runs more frequently since the PCM buffer is a third of the size in SVN. But it should not (and does not, afaik) boost more than SVN.