crossfade: use audio_format_valid() in assertion

This commit is contained in:
Max Kellermann 2009-11-15 15:39:00 +01:00
parent 5184476682
commit 5d1e5f4ea0

View File

@ -40,9 +40,7 @@ unsigned cross_fade_calc(float duration, float total_time,
return 0;
assert(duration > 0);
assert(af->bits > 0);
assert(af->channels > 0);
assert(af->sample_rate > 0);
assert(audio_format_valid(af));
chunks = audio_format_time_to_size(af) / CHUNK_SIZE;
chunks = (chunks * duration + 0.5);