This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6023 - ADX decoder
Attached to Project:
Rockbox
Opened by Adam Gashlin (AdamGashlin) - Monday, 18 September 2006, 23:42 GMT+2
Opened by Adam Gashlin (AdamGashlin) - Monday, 18 September 2006, 23:42 GMT+2
|
DetailsHere's an ADX decoder (4-bit ADPCM with looping, used in video games, from CRI middleware) for rockbox. I'd like to add some more configuration and features but I thought it'd be good to get it out there for testing. I've had it tested on an iPod Photo and Video.
The adx.c file goes in apps/codecs. The patch was generated against the most recent CVS and seems to work out. |
This task depends upon
Closed by Rani Hod (RaeNye)
Monday, 25 September 2006, 18:13 GMT+2
Reason for closing: Accepted
Additional comments about closing: Thanks!
If you have any more changes, please feel free to reopen/open a new task.
Monday, 25 September 2006, 18:13 GMT+2
Reason for closing: Accepted
Additional comments about closing: Thanks!
If you have any more changes, please feel free to reopen/open a new task.
http://rotb.mgbr.net/music.htm
Player stays at 45 MHz and PCM buffer stays almost always full.
Note to author: please limit lines to 80 characters and avoid using CR/LFs.
IMHO it should respect Repeat settings (i.e., loop only if repeat=one).
Please revise and I'll commit.
If repeat=one it will properly loop the current track endlessly. Otherwise, it will repeat the looped part twice and then fade out over five seconds, as is common on soundtrack CDs.
Also straightened up and commented more, and now included adx.c in the patch.
Here's the new patch.
1) start playing a looping adx in repeat=one mode
2) near the middle of the track switch to repeat=none
3) a bit after the loop, when the correct name for the next track is loaded, things get nasty
instead of displaying the played length (i.e., a little more than twice the real length) it wraps to 00:00 on the second playback.
That also means FF/RW control is hindered.
Also, IMHO fade-out should be governed by crossfade settings...
here you have a double fade when you have crossfade on.
This updated patch should be all you've ever dreamed of. I know it's a weight off my chest.