summaryrefslogtreecommitdiffstats
path: root/apps/codecs/adx.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-30 19:40:09 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-30 19:40:09 +0000
commite88d24a8407ee3fca32cf08399ce895c49c80fc0 (patch)
treec1f5b054ae0a80ab4b72f33547742577d34c48ec /apps/codecs/adx.c
parente66ad3e8a86a19b9ef9480bc52766e61955f341d (diff)
downloadrockbox-e88d24a8407ee3fca32cf08399ce895c49c80fc0.tar.gz
rockbox-e88d24a8407ee3fca32cf08399ce895c49c80fc0.tar.bz2
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/adx.c')
-rw-r--r--apps/codecs/adx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/adx.c b/apps/codecs/adx.c
index 8144d5f468..cc7f0320be 100644
--- a/apps/codecs/adx.c
+++ b/apps/codecs/adx.c
@@ -239,7 +239,7 @@ enum codec_status codec_run(void)
if (bufoff > end_adr-18*channels && looping) {
DEBUGF("ADX: loop!\n");
/* check for endless looping */
- if (ci->global_settings->repeat_mode==REPEAT_ONE) {
+ if (ci->loop_track()) {
loop_count=0;
fade_count = -1; /* disable fade */
} else {