From 2a388c2aa7c414b525c95de9b81a837b8da54ea7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 10 Feb 2009 18:51:29 +0100 Subject: 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(). --- src/crossfade.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/crossfade.h') 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, -- cgit v1.2.3