This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12189 - Simplify the codec API and don't always loop MODs.
|
DetailsThis patch makes some changes to codec_api to help remove dependencies for my project.
The unused strcasestr callback is removed. The global_settings pointer was being used by several codecs to check whether REPEAT_ONE mode is on; this has been replaced with a callback "should_loop()". The MOD codec has been modified not to restart the file when it reaches the end. This does not affect MOD files that use "position jump" to loop part of the song. Ideally the MOD codec would only follow such loops if should_loop() returns 1, but detecting loops is nontrivial. |
This task depends upon
I understand the motivation for removing the global_settings member. However, that change also removes a generic mechanism for configuring codecs. What would now be a good way to configure a codec – either in a generic way, or if that's impractical, in this specific case (boolean flag to turn codec-specific gap elision on or off)?