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/codec_thread.c | |
| 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/codec_thread.c')
| -rw-r--r-- | apps/codec_thread.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c index 199bb0e..90cf07b 100644 --- a/apps/codec_thread.c +++ b/apps/codec_thread.c @@ -30,6 +30,7 @@ #include "buffering.h" #include "dsp.h" #include "metadata.h" +#include "settings.h" /* Define LOGF_ENABLE to enable logf output in this file */ /*#define LOGF_ENABLE*/ @@ -405,6 +406,11 @@ static enum codec_command_action } } +static bool codec_loop_track_callback(void) +{ + return global_settings.repeat_mode == REPEAT_ONE; +} + /* Initialize codec API */ void codec_init_codec_api(void) { @@ -421,6 +427,7 @@ void codec_init_codec_api(void) ci.set_offset = audio_codec_update_offset; ci.configure = codec_configure_callback; ci.get_command = codec_get_command_callback; + ci.loop_track = codec_loop_track_callback; } |