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 a6e454f439..12ec1edd0f 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -374,13 +374,13 @@ static char* create_bookmark()
374 snprintf(global_bookmark, sizeof(global_bookmark), 374 snprintf(global_bookmark, sizeof(global_bookmark),
375 /* new optional bookmark token descriptors should be inserted 375 /* new optional bookmark token descriptors should be inserted
376 just before the "%s;%s" in this line... */ 376 just before the "%s;%s" in this line... */
377#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHSCREEN) 377#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHCONTROL)
378 ">%d;%d;%ld;%d;%ld;%d;%d;%ld;%ld;%s;%s", 378 ">%d;%d;%ld;%d;%ld;%d;%d;%ld;%ld;%s;%s",
379#else 379#else
380 ">%d;%d;%ld;%d;%ld;%d;%d;%s;%s", 380 ">%d;%d;%ld;%d;%ld;%d;%d;%s;%s",
381#endif 381#endif
382 /* ... their flags should go here ... */ 382 /* ... their flags should go here ... */
383#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHSCREEN) 383#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHCONTROL)
384 BM_PITCH | BM_SPEED, 384 BM_PITCH | BM_SPEED,
385#else 385#else
386 0, 386 0,
@@ -392,7 +392,7 @@ static char* create_bookmark()
392 global_settings.repeat_mode, 392 global_settings.repeat_mode,
393 global_settings.playlist_shuffle, 393 global_settings.playlist_shuffle,
394 /* ...and their values should go here */ 394 /* ...and their values should go here */
395#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHSCREEN) 395#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHCONTROL)
396 (long)sound_get_pitch(), 396 (long)sound_get_pitch(),
397 (long)dsp_get_timestretch(), 397 (long)dsp_get_timestretch(),
398#endif 398#endif
@@ -954,7 +954,7 @@ static void say_bookmark(const char* bookmark,
954/* ------------------------------------------------------------------------*/ 954/* ------------------------------------------------------------------------*/
955static bool play_bookmark(const char* bookmark) 955static bool play_bookmark(const char* bookmark)
956{ 956{
957#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHSCREEN) 957#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHCONTROL)
958 /* preset pitch and speed to 100% in case bookmark doesn't have info */ 958 /* preset pitch and speed to 100% in case bookmark doesn't have info */
959 bm.pitch = sound_get_pitch(); 959 bm.pitch = sound_get_pitch();
960 bm.speed = dsp_get_timestretch(); 960 bm.speed = dsp_get_timestretch();
@@ -964,7 +964,7 @@ static bool play_bookmark(const char* bookmark)
964 { 964 {
965 global_settings.repeat_mode = bm.repeat_mode; 965 global_settings.repeat_mode = bm.repeat_mode;
966 global_settings.playlist_shuffle = bm.shuffle; 966 global_settings.playlist_shuffle = bm.shuffle;
967#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHSCREEN) 967#if CONFIG_CODEC == SWCODEC && defined(HAVE_PITCHCONTROL)
968 sound_set_pitch(bm.pitch); 968 sound_set_pitch(bm.pitch);
969 dsp_set_timestretch(bm.speed); 969 dsp_set_timestretch(bm.speed);
970#endif 970#endif