diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-30 19:40:09 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-30 19:40:09 +0000 |
commit | e88d24a8407ee3fca32cf08399ce895c49c80fc0 (patch) | |
tree | c1f5b054ae0a80ab4b72f33547742577d34c48ec /apps/codecs/nsf.c | |
parent | e66ad3e8a86a19b9ef9480bc52766e61955f341d (diff) | |
download | rockbox-e88d24a8407ee3fca32cf08399ce895c49c80fc0.tar.gz rockbox-e88d24a8407ee3fca32cf08399ce895c49c80fc0.zip |
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
Diffstat (limited to 'apps/codecs/nsf.c')
-rw-r--r-- | apps/codecs/nsf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/nsf.c b/apps/codecs/nsf.c index 8899501e05..533972e110 100644 --- a/apps/codecs/nsf.c +++ b/apps/codecs/nsf.c | |||
@@ -20,7 +20,7 @@ static void set_codec_track(int t, int multitrack) { | |||
20 | Nsf_start_track(&nsf_emu, t); | 20 | Nsf_start_track(&nsf_emu, t); |
21 | 21 | ||
22 | /* for REPEAT_ONE we disable track limits */ | 22 | /* for REPEAT_ONE we disable track limits */ |
23 | if (ci->global_settings->repeat_mode != REPEAT_ONE) { | 23 | if (!ci->loop_track()) { |
24 | Track_set_fade(&nsf_emu, Track_length( &nsf_emu, t ) - 4000, 4000); | 24 | Track_set_fade(&nsf_emu, Track_length( &nsf_emu, t ) - 4000, 4000); |
25 | } | 25 | } |
26 | if (multitrack) ci->set_elapsed(t*1000); /* t is track no to display */ | 26 | if (multitrack) ci->set_elapsed(t*1000); /* t is track no to display */ |
@@ -109,7 +109,7 @@ next_track: | |||
109 | ci->seek_complete(); | 109 | ci->seek_complete(); |
110 | 110 | ||
111 | /* Set fade again */ | 111 | /* Set fade again */ |
112 | if (ci->global_settings->repeat_mode != REPEAT_ONE) { | 112 | if (!ci->loop_track()) { |
113 | Track_set_fade(&nsf_emu, Track_length( &nsf_emu, track ), 4000); | 113 | Track_set_fade(&nsf_emu, Track_length( &nsf_emu, track ), 4000); |
114 | } | 114 | } |
115 | } | 115 | } |