diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-02-14 14:40:24 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-02-14 14:40:24 +0000 |
commit | 9f4bd8712fc122f61ec162c544d613a95c3ca66e (patch) | |
tree | 4e652a1e7c19ac8a6bb789ee79304744c133d029 /apps/main.c | |
parent | 0403c2a572154667f3f2bd671d7d5a7cc08c64af (diff) | |
download | rockbox-9f4bd8712fc122f61ec162c544d613a95c3ca66e.tar.gz rockbox-9f4bd8712fc122f61ec162c544d613a95c3ca66e.zip |
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
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/main.c b/apps/main.c index dac7ac755d..4c643c4130 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -103,6 +103,8 @@ | |||
103 | #include "m5636.h" | 103 | #include "m5636.h" |
104 | #endif | 104 | #endif |
105 | 105 | ||
106 | #include "cuesheet.h" | ||
107 | |||
106 | /*#define AUTOROCK*/ /* define this to check for "autostart.rock" on boot */ | 108 | /*#define AUTOROCK*/ /* define this to check for "autostart.rock" on boot */ |
107 | 109 | ||
108 | const char appsversion[]=APPSVERSION; | 110 | const char appsversion[]=APPSVERSION; |
@@ -274,7 +276,8 @@ static void init(void) | |||
274 | global_settings.superbass); | 276 | global_settings.superbass); |
275 | 277 | ||
276 | scrobbler_init(); | 278 | scrobbler_init(); |
277 | 279 | cuesheet_init(); | |
280 | |||
278 | /* audio_init must to know the size of voice buffer so init voice first */ | 281 | /* audio_init must to know the size of voice buffer so init voice first */ |
279 | #if CONFIG_CODEC == SWCODEC | 282 | #if CONFIG_CODEC == SWCODEC |
280 | talk_init(); | 283 | talk_init(); |
@@ -489,6 +492,7 @@ static void init(void) | |||
489 | playlist_init(); | 492 | playlist_init(); |
490 | tree_init(); | 493 | tree_init(); |
491 | scrobbler_init(); | 494 | scrobbler_init(); |
495 | cuesheet_init(); | ||
492 | 496 | ||
493 | /* No buffer allocation (see buffer.c) may take place after the call to | 497 | /* No buffer allocation (see buffer.c) may take place after the call to |
494 | audio_init() since the mpeg thread takes the rest of the buffer space */ | 498 | audio_init() since the mpeg thread takes the rest of the buffer space */ |