Notice: A non well formed numeric value encountered in /sites/ on line 96 Notice: A non well formed numeric value encountered in /sites/ on line 96 Notice: A non well formed numeric value encountered in /sites/ on line 96 Deprecated: Function create_function() is deprecated in /sites/ on line 104 Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /sites/ on line 845 Deprecated: Function create_function() is deprecated in /sites/ on line 111 FS#5248 : Crossfade isn't working properly anymore



FS#5248 - Crossfade isn't working properly anymore

Attached to Project: Rockbox
Opened by James reeves (haibane) - Friday, 28 April 2006, 04:21 GMT
Last edited by Dave Chapman (linuxstb) - Thursday, 25 May 2006, 20:11 GMT
Task Type Bugs
Category Music playback
Status Closed
Assigned To No-one
Operating System iPod 4G Color
Severity High
Priority Normal
Reported Version
Due in Version Version 3.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


OK, so before the last 2 or 3 updates, the crossfade function has worked flawlessly, but now it doesn't even crossfade anymore. I am using the same settings as before. So I don't know what it is, but oddly it isn't working. Thanks in advance
This task depends upon

Closed by  Rani Hod (RaeNye)
Monday, 18 September 2006, 18:31 GMT
Reason for closing:  Works For Me
Additional comments about closing:  Please reopen if the problem persists.
Comment by Philipp Kuhn (Taurus) - Friday, 28 April 2006, 09:13 GMT
I've got an IAudio X5 60GB.
Crossfading was last working with daily build
With today's (~20060428) CVS Builds, it is working (again), but only on normal track changes.
It doesn't crossfade on track skip, even if crossfade settings are set to 'Always'!

Greets, Taurus
Comment by Philipp Kuhn (Taurus) - Friday, 28 April 2006, 17:09 GMT
I'm sorry, but I have to correct the above comment:

It seems that in versions <=, the Fade-Out Mode 'Mix' did not behave as it does in current versions.
I've now set it to crossfade and have the effect I wanted ;)
Still, it doesn't always crossfade! It only crossfades on ~half of the manual skips.
Also, when skipping 2 or more times in a row, it hard-skips the tracks.
Comment by Brandon Low (lostlogic) - Tuesday, 02 May 2006, 14:38 GMT
Track skipping repeatedly will not crossfade, the buffer doesn't have a chance to fill to allow for a fade. This doesn't really sound like a bug to me, are you sure that it fades less often on manual skip than on the old builds? Manual skip fade is difficult to initialize, because often a manual skip is pressed when the buffer level is low, and the fade can't be processed properly.
Comment by Philipp Kuhn (Taurus) - Tuesday, 02 May 2006, 15:03 GMT
I don't know if it really happens more often than before. I'll test it!

What you're saying is exactly what I've thought (the buffer having no time to refill).
It is still a bug to me, because:
I assume that the same effect occures when crossfade setting is set to 'Track skip only'.
Especially then, but also when set to 'always', I want to (yes, I'm being very selfish, sorry!) have crossfading! As a simple user, I don't care about the buffer.

What I suggest is that the track doesn't skip until the buffer is properly filled. This will slow down the skipping process in some cases, but if this annoys you, this could be avoided by setting an additional option 'Always but on skip' (if this doesn't already exist. Dunno what 'Shuffle' does exactly...).
Comment by James reeves (haibane) - Tuesday, 02 May 2006, 15:19 GMT
What Taurus is experiencing is almost identical to what my issue is on the latest build
Comment by Brandon Low (lostlogic) - Tuesday, 02 May 2006, 23:51 GMT
In short, no. We will never delay the track skip until the buffer fills enough to crossfade. The UI lag and complexity penalties for such a thing are too great.

James, is this something that you can clearly say has changed in new builds compared to older?
Comment by James reeves (haibane) - Wednesday, 03 May 2006, 00:29 GMT
definately. This is one of the things that got me into rock box. I have been using it on my ipod live and just recently noticed that the playback no longer fades using the same exact settings I have always used.
Comment by Steve Bavin (pondlife) - Friday, 05 May 2006, 10:51 GMT
It seems that crossfade works every time if I browse to the next (or previous) track, rather than using track skip. I would have though that with random-access browsing it would be more likely to fail as the required audio would almost certainly not be buffered... this is on an IRiver H340 with a current CVS build.
Comment by gl (gl.tter) - Wednesday, 31 May 2006, 14:35 GMT
Brandon, I think that's wrong, you should exactly fill the buffer to crossfade every time (same with beeping). The user experience of 'intermittent features' is horrible. If the user wants crossfading/beeping, give it to him reliably.
Comment by gl (gl.tter) - Wednesday, 31 May 2006, 14:41 GMT
Let me qualify that, if you're multi-skipping quickly in succesion, then by all means don't crossfade. However I'm seeing skip crossfading not work most of the time even in the middle of tracks, and if that is caused by the buffer being in the wrong state, then the buffer should be refilled.
Comment by Philipp Kuhn (Taurus) - Wednesday, 31 May 2006, 17:10 GMT
(As said before) I totally agree with gl.tter.

I cannot confirm (with numbers) that crossfade is working worse with actual releases than with releases < 20060418. But I have the feeling that it does.
On my iAudio x5 I often have skips on track skipping instead of proper fading. If you don't touch the dial, crossfading works fine, of course. But if you do a manual skip, then it only works 50-70% of the time (not measured values, just my feelings).
Of course if you're being mean and skip right after track change, the failure rate is even much higher. But in the past few weeks, I was surprised by the count of fading failures of skips in the middle of a track, where I thought the player was just running and not reading/refilling the buffer or something like that.

Would it help to increase the anti-skip buffer (currently to default 5 secs)?
Comment by Steve Bavin (pondlife) - Monday, 31 July 2006, 18:13 GMT
Please could anyone who's seeing this problem please try patch #5751 -
It may be a red herring, but this Works For Me and I'd like to see if it works for you (and doesn't cause lockups).
Comment by Steve Bavin (pondlife) - Thursday, 03 August 2006, 11:40 GMT
Miika has done some work on this recently, please try a new CVS build and report back if the crossfade is still failing.