FS#9577 - SNES player missing tracks on certain SPCs

Attached to Project: Rockbox
Opened by Alfred Hoppe (DoomRater) - Tuesday, 25 November 2008, 20:48 GMT
Last edited by Michael Sevakis (MikeS) - Tuesday, 21 May 2013, 08:30 GMT
Task Type Bugs
Category Codecs
Status Closed
Assigned To No-one
Operating System Sansa e200
Severity Low
Priority Normal
Reported Version Release 3.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Most notable on Dragon: the Bruce Lee Story. There are certain notes that do not play on the rockbox player but do play on SNESAmp as well as real carts.

recordings from Dragon_01.spc from both SNESAmp and the Rockbox player starting from about 45 seconds in for comparison. Also Dragon_01.spc included.
This task depends upon

Closed by  Michael Sevakis (MikeS)
Tuesday, 21 May 2013, 08:30 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 71b9685
Comment by Michael Sevakis (MikeS) - Thursday, 21 April 2011, 10:20 GMT
Confirmed on e200. On my Gigabeat S it plays correctly but that uses realtime BRR decode.
Comment by Michael Sevakis (MikeS) - Tuesday, 21 May 2013, 05:56 GMT
I figured out what this is. BRR caching assumes samples are self contained and that loops are inside the initial wave but Dragon_01 breaks that assumption by stitching various waves together. This doesn't bother realtime BRR decoding but does mess up the cache. I will try to come up with a fix but it looks a wee bit tricky.