Assert rather than return

This commit is contained in:
Paul Ferrand 2020-08-07 11:19:33 +02:00
parent c39a50ee92
commit 70cf1c0be3

View file

@ -680,8 +680,7 @@ void sfz::Synth::setSampleRate(float sampleRate) noexcept
void sfz::Synth::renderVoiceToOutputs(Voice& voice, AudioSpan<float>& tempSpan) noexcept
{
const Region* region = voice.getRegion();
if (region == nullptr)
return;
ASSERT(region != nullptr);
voice.renderBlock(tempSpan);
for (size_t i = 0, n = effectBuses.size(); i < n; ++i) {