forked from len0rd/rockbox
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
|
|
@ -17,8 +17,8 @@ static struct Ay_Emu ay_emu;
|
|||
static void set_codec_track(int t, int multitrack) {
|
||||
Ay_start_track(&ay_emu, t);
|
||||
|
||||
/* for REPEAT_ONE we disable track limits */
|
||||
if (ci->global_settings->repeat_mode != REPEAT_ONE) {
|
||||
/* for loop mode we disable track limits */
|
||||
if (!ci->loop_track()) {
|
||||
Track_set_fade(&ay_emu, Track_get_length( &ay_emu, t ) - 4000, 4000);
|
||||
}
|
||||
if (multitrack) ci->set_elapsed(t*1000); /* t is track no to display */
|
||||
|
|
@ -111,7 +111,7 @@ next_track:
|
|||
ci->seek_complete();
|
||||
|
||||
/* Set fade again */
|
||||
if (ci->global_settings->repeat_mode != REPEAT_ONE) {
|
||||
if (!ci->loop_track()) {
|
||||
Track_set_fade(&ay_emu, Track_get_length( &ay_emu, track ) - 4000, 4000);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue