mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-22 19:42:40 -05:00
Submit parts of FS#12189 regarding codec API. Replaces access to global settings with a dedicated function to determine if the current track shall be looped. Used by several synthesizer codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30391 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e66ad3e8a8
commit
e88d24a840
13 changed files with 38 additions and 29 deletions
|
|
@ -23,7 +23,7 @@ static void set_codec_track(int t) {
|
|||
Sgc_start_track(&sgc_emu, t);
|
||||
|
||||
/* for REPEAT_ONE we disable track limits */
|
||||
if (ci->global_settings->repeat_mode != REPEAT_ONE) {
|
||||
if (!ci->loop_track()) {
|
||||
Track_set_fade(&sgc_emu, Track_get_length( &sgc_emu, t ), 4000);
|
||||
}
|
||||
ci->set_elapsed(t*1000); /* t is track no to display */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue