diff options
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c index 312a1c8165..2c9ca10311 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -814,6 +814,7 @@ void audio_set_buffer_margin(int setting) | |||
814 | } | 814 | } |
815 | #endif | 815 | #endif |
816 | 816 | ||
817 | #ifdef HAVE_CROSSFADE | ||
817 | /* Take necessary steps to enable or disable the crossfade setting */ | 818 | /* Take necessary steps to enable or disable the crossfade setting */ |
818 | void audio_set_crossfade(int enable) | 819 | void audio_set_crossfade(int enable) |
819 | { | 820 | { |
@@ -847,6 +848,7 @@ void audio_set_crossfade(int enable) | |||
847 | if (was_playing) | 848 | if (was_playing) |
848 | audio_play(offset); | 849 | audio_play(offset); |
849 | } | 850 | } |
851 | #endif | ||
850 | 852 | ||
851 | /* --- Routines called from multiple threads --- */ | 853 | /* --- Routines called from multiple threads --- */ |
852 | 854 | ||
@@ -1919,7 +1921,11 @@ static void audio_thread(void) | |||
1919 | 1921 | ||
1920 | case Q_AUDIO_PAUSE: | 1922 | case Q_AUDIO_PAUSE: |
1921 | LOGFQUEUE("audio < Q_AUDIO_PAUSE"); | 1923 | LOGFQUEUE("audio < Q_AUDIO_PAUSE"); |
1922 | if (!(bool) ev.data && skipped_during_pause && !pcmbuf_is_crossfade_active()) | 1924 | if (!(bool) ev.data && skipped_during_pause |
1925 | #ifdef HAVE_CROSSFADE | ||
1926 | && !pcmbuf_is_crossfade_active() | ||
1927 | #endif | ||
1928 | ) | ||
1923 | pcmbuf_play_stop(); /* Flush old track on resume after skip */ | 1929 | pcmbuf_play_stop(); /* Flush old track on resume after skip */ |
1924 | skipped_during_pause = false; | 1930 | skipped_during_pause = false; |
1925 | if (!playing) | 1931 | if (!playing) |
@@ -2059,8 +2065,10 @@ void audio_init(void) | |||
2059 | voice_thread_init(); | 2065 | voice_thread_init(); |
2060 | #endif | 2066 | #endif |
2061 | 2067 | ||
2068 | #ifdef HAVE_CROSSFADE | ||
2062 | /* Set crossfade setting for next buffer init which should be about... */ | 2069 | /* Set crossfade setting for next buffer init which should be about... */ |
2063 | pcmbuf_request_crossfade_enable(global_settings.crossfade); | 2070 | pcmbuf_request_crossfade_enable(global_settings.crossfade); |
2071 | #endif | ||
2064 | 2072 | ||
2065 | /* initialize the buffering system */ | 2073 | /* initialize the buffering system */ |
2066 | 2074 | ||