summaryrefslogtreecommitdiff
path: root/apps/bookmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r--apps/bookmark.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c
index dc6a09de10..efc43c6270 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -348,13 +348,13 @@ static char* create_bookmark()
348 snprintf(global_bookmark, sizeof(global_bookmark), 348 snprintf(global_bookmark, sizeof(global_bookmark),
349 /* new optional bookmark token descriptors should be inserted 349 /* new optional bookmark token descriptors should be inserted
350 just before the "%s;%s" in this line... */ 350 just before the "%s;%s" in this line... */
351#if CONFIG_CODEC == SWCODEC 351#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHSCREEN)
352 ">%d;%d;%ld;%d;%ld;%d;%d;%ld;%ld;%s;%s", 352 ">%d;%d;%ld;%d;%ld;%d;%d;%ld;%ld;%s;%s",
353#else 353#else
354 ">%d;%d;%ld;%d;%ld;%d;%d;%s;%s", 354 ">%d;%d;%ld;%d;%ld;%d;%d;%s;%s",
355#endif 355#endif
356 /* ... their flags should go here ... */ 356 /* ... their flags should go here ... */
357#if CONFIG_CODEC == SWCODEC 357#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHSCREEN)
358 BM_PITCH | BM_SPEED, 358 BM_PITCH | BM_SPEED,
359#else 359#else
360 0, 360 0,
@@ -366,7 +366,7 @@ static char* create_bookmark()
366 global_settings.repeat_mode, 366 global_settings.repeat_mode,
367 global_settings.playlist_shuffle, 367 global_settings.playlist_shuffle,
368 /* ...and their values should go here */ 368 /* ...and their values should go here */
369#if CONFIG_CODEC == SWCODEC 369#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHSCREEN)
370 (long)sound_get_pitch(), 370 (long)sound_get_pitch(),
371 (long)dsp_get_timestretch(), 371 (long)dsp_get_timestretch(),
372#endif 372#endif
@@ -913,7 +913,7 @@ static void say_bookmark(const char* bookmark,
913/* ------------------------------------------------------------------------*/ 913/* ------------------------------------------------------------------------*/
914static bool play_bookmark(const char* bookmark) 914static bool play_bookmark(const char* bookmark)
915{ 915{
916#if CONFIG_CODEC == SWCODEC 916#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHSCREEN)
917 /* preset pitch and speed to 100% in case bookmark doesn't have info */ 917 /* preset pitch and speed to 100% in case bookmark doesn't have info */
918 bm.pitch = sound_get_pitch(); 918 bm.pitch = sound_get_pitch();
919 bm.speed = dsp_get_timestretch(); 919 bm.speed = dsp_get_timestretch();
@@ -923,7 +923,7 @@ static bool play_bookmark(const char* bookmark)
923 { 923 {
924 global_settings.repeat_mode = bm.repeat_mode; 924 global_settings.repeat_mode = bm.repeat_mode;
925 global_settings.playlist_shuffle = bm.shuffle; 925 global_settings.playlist_shuffle = bm.shuffle;
926#if CONFIG_CODEC == SWCODEC 926#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHSCREEN)
927 sound_set_pitch(bm.pitch); 927 sound_set_pitch(bm.pitch);
928 dsp_set_timestretch(bm.speed); 928 dsp_set_timestretch(bm.speed);
929#endif 929#endif