diff options
author | Max Kellermann <max@duempel.org> | 2009-02-10 18:51:29 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-10 18:51:29 +0100 |
commit | 2a388c2aa7c414b525c95de9b81a837b8da54ea7 (patch) | |
tree | f72d9ba3912087f60b2abdfbb372b9cf549fbeb8 /src/crossfade.h | |
parent | 34244398d01b4182558f45c6363be62d37c29b50 (diff) | |
download | mpd-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.h | 1 |
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, |