aboutsummaryrefslogtreecommitdiffstats
path: root/src/crossfade.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-10 18:51:29 +0100
committerMax Kellermann <max@duempel.org>2009-02-10 18:51:29 +0100
commit2a388c2aa7c414b525c95de9b81a837b8da54ea7 (patch)
treef72d9ba3912087f60b2abdfbb372b9cf549fbeb8 /src/crossfade.h
parent34244398d01b4182558f45c6363be62d37c29b50 (diff)
downloadmpd-2a388c2aa7c414b525c95de9b81a837b8da54ea7.tar.gz
mpd-2a388c2aa7c414b525c95de9b81a837b8da54ea7.tar.xz
mpd-2a388c2aa7c414b525c95de9b81a837b8da54ea7.zip
crossfade: don't use isCurrentAudioFormat()
The crossfading code shouldn't depend on the audio output code. Pass the current audio format to cross_fade_calc() and let it compare directly, instead of using isCurrentAudioFormat().
Diffstat (limited to '')
-rw-r--r--src/crossfade.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crossfade.h b/src/crossfade.h
index 34ddcb433..31495f806 100644
--- a/src/crossfade.h
+++ b/src/crossfade.h
@@ -25,6 +25,7 @@ struct music_chunk;
unsigned cross_fade_calc(float duration, float total_time,
const struct audio_format *af,
+ const struct audio_format *old_format,
unsigned max_chunks);
void cross_fade_apply(struct music_chunk *a, const struct music_chunk *b,