mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Cuesheet support by Jonathan Gordon and me (FS #6460).
Everytime an audio file is loaded, a cue file with the same name is searched for. A setting allows to disable this (default is off). Cuesheet files can also be viewed in the file browser. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12304 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0403c2a572
commit
9f4bd8712f
16 changed files with 640 additions and 6 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#include "dsp.h"
|
||||
#include "scrobbler.h"
|
||||
#include "audio.h"
|
||||
#include "cuesheet.h"
|
||||
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
int setcrossfadeonexit_callback(int action,const struct menu_item_ex *this_item)
|
||||
|
|
@ -146,6 +147,21 @@ int audioscrobbler_callback(int action,const struct menu_item_ex *this_item)
|
|||
}
|
||||
MENUITEM_SETTING(audioscrobbler, &global_settings.audioscrobbler, audioscrobbler_callback);
|
||||
|
||||
|
||||
int cuesheet_callback(int action,const struct menu_item_ex *this_item)
|
||||
{
|
||||
(void)this_item;
|
||||
switch (action)
|
||||
{
|
||||
case ACTION_EXIT_MENUITEM: /* on exit */
|
||||
if (!cuesheet_is_enabled() && global_settings.cuesheet)
|
||||
gui_syncsplash(HZ*2, true, str(LANG_PLEASE_REBOOT));
|
||||
break;
|
||||
}
|
||||
return action;
|
||||
}
|
||||
MENUITEM_SETTING(cuesheet, &global_settings.cuesheet, cuesheet_callback);
|
||||
|
||||
#ifdef HAVE_HEADPHONE_DETECTION
|
||||
MENUITEM_SETTING(unplug_mode, &global_settings.unplug_mode, NULL);
|
||||
MENUITEM_SETTING(unplug_rw, &global_settings.unplug_rw, NULL);
|
||||
|
|
@ -167,7 +183,7 @@ MAKE_MENU(playback_menu_item,ID2P(LANG_PLAYBACK),0,
|
|||
#ifdef HAVE_SPDIF_POWER
|
||||
&spdif_enable,
|
||||
#endif
|
||||
&id3_v1_first, &next_folder, &audioscrobbler
|
||||
&id3_v1_first, &next_folder, &audioscrobbler, &cuesheet
|
||||
#ifdef HAVE_HEADPHONE_DETECTION
|
||||
,&unplug_menu
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue