summaryrefslogtreecommitdiff
path: root/apps/cuesheet.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r--apps/cuesheet.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c
index 7a5eb32193..2f36ff0212 100644
--- a/apps/cuesheet.c
+++ b/apps/cuesheet.c
@@ -40,12 +40,22 @@
40#include "playback.h" 40#include "playback.h"
41#include "cuesheet.h" 41#include "cuesheet.h"
42 42
43#if CONFIG_CODEC != SWCODEC
44/* special trickery because the hwcodec playback engine is in firmware/ */
45static bool cuesheet_handler(const char *filename)
46{
47 return cuesheet_is_enabled() && look_for_cuesheet_file(filename);
48}
49#endif
43 50
44void cuesheet_init(void) 51void cuesheet_init(void)
45{ 52{
46 if (global_settings.cuesheet) { 53 if (global_settings.cuesheet) {
47 curr_cue = (struct cuesheet *)buffer_alloc(sizeof(struct cuesheet)); 54 curr_cue = (struct cuesheet *)buffer_alloc(sizeof(struct cuesheet));
48 temp_cue = (struct cuesheet *)buffer_alloc(sizeof(struct cuesheet)); 55 temp_cue = (struct cuesheet *)buffer_alloc(sizeof(struct cuesheet));
56#if CONFIG_CODEC != SWCODEC
57 audio_set_cuesheet_callback(cuesheet_handler);
58#endif
49 } else { 59 } else {
50 curr_cue = NULL; 60 curr_cue = NULL;
51 temp_cue = NULL; 61 temp_cue = NULL;