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/plugins | |
| parent | e66ad3e8a86a19b9ef9480bc52766e61955f341d (diff) | |
| download | rockbox-e88d24a8407ee3fca32cf08399ce895c49c80fc0.zip rockbox-e88d24a8407ee3fca32cf08399ce895c49c80fc0.tar.gz rockbox-e88d24a8407ee3fca32cf08399ce895c49c80fc0.tar.bz2 rockbox-e88d24a8407ee3fca32cf08399ce895c49c80fc0.tar.xz | |
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/plugins')
| -rw-r--r-- | apps/plugins/test_codec.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index b1525ca..6b6ba00 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c @@ -505,6 +505,12 @@ static enum codec_command_action get_command(intptr_t *param) (void)param; } +/* Some codecs call this to determine whether they should loop. */ +static bool loop_track(void) +{ + return false; +} + static void set_offset(size_t value) { ci.id3->offset = value; @@ -561,6 +567,7 @@ static void init_ci(void) ci.set_offset = set_offset; ci.configure = configure; ci.get_command = get_command; + ci.loop_track = loop_track; /* --- "Core" functions --- */ @@ -578,7 +585,6 @@ static void init_ci(void) ci.memmove = rb->memmove; ci.memcmp = rb->memcmp; ci.memchr = rb->memchr; - ci.strcasestr = rb->strcasestr; #if defined(DEBUG) || defined(SIMULATOR) ci.debugf = rb->debugf; #endif @@ -587,7 +593,6 @@ static void init_ci(void) #endif ci.qsort = rb->qsort; - ci.global_settings = rb->global_settings; #ifdef RB_PROFILE ci.profile_thread = rb->profile_thread; |