1
0
Fork 0
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:
Andree Buschmann 2011-08-30 19:40:09 +00:00
parent e66ad3e8a8
commit e88d24a840
13 changed files with 38 additions and 29 deletions

View file

@ -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 {