Assert rather than return
This commit is contained in:
parent
c39a50ee92
commit
70cf1c0be3
1 changed files with 1 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue