crossfade: use audio_format_valid() in assertion
This commit is contained in:
parent
5184476682
commit
5d1e5f4ea0
@ -40,9 +40,7 @@ unsigned cross_fade_calc(float duration, float total_time,
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
assert(duration > 0);
|
assert(duration > 0);
|
||||||
assert(af->bits > 0);
|
assert(audio_format_valid(af));
|
||||||
assert(af->channels > 0);
|
|
||||||
assert(af->sample_rate > 0);
|
|
||||||
|
|
||||||
chunks = audio_format_time_to_size(af) / CHUNK_SIZE;
|
chunks = audio_format_time_to_size(af) / CHUNK_SIZE;
|
||||||
chunks = (chunks * duration + 0.5);
|
chunks = (chunks * duration + 0.5);
|
||||||
|
Loading…
Reference in New Issue
Block a user