1
0
Fork 0
forked from len0rd/rockbox

Hook up .cue file detection via a callback klugde on HWCODEC, to make cue sheet support actually work.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12526 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2007-03-01 00:26:24 +00:00
parent 35ad10be59
commit 509a96dd51
3 changed files with 22 additions and 0 deletions

View file

@ -40,12 +40,22 @@
#include "playback.h"
#include "cuesheet.h"
#if CONFIG_CODEC != SWCODEC
/* special trickery because the hwcodec playback engine is in firmware/ */
static bool cuesheet_handler(const char *filename)
{
return cuesheet_is_enabled() && look_for_cuesheet_file(filename);
}
#endif
void cuesheet_init(void)
{
if (global_settings.cuesheet) {
curr_cue = (struct cuesheet *)buffer_alloc(sizeof(struct cuesheet));
temp_cue = (struct cuesheet *)buffer_alloc(sizeof(struct cuesheet));
#if CONFIG_CODEC != SWCODEC
audio_set_cuesheet_callback(cuesheet_handler);
#endif
} else {
curr_cue = NULL;
temp_cue = NULL;