Skip to content

Commit

Permalink
Fix assertions in ResampledRNNAccelerated
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Jul 13, 2023
1 parent c8f16b2 commit 28087c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/processors/drive/neural_utils/ResampledRNNAccelerated.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ResampledRNNAccelerated
}
else
{
jassert ((int) condition_data.size() == bufferView.getNumSamples());
jassert ((int) condition_data.size() == data.size());
model.process_conditioned (data, condition_data, useResiduals);
}
});
Expand All @@ -54,6 +54,7 @@ class ResampledRNNAccelerated
template <bool useResiduals = false>
void process (const juce::dsp::AudioBlock<float>& block, std::span<const float> condition_data = {}) noexcept
{
jassert (block.getNumChannels() == 1);
const auto bufferView = chowdsp::BufferView<float> { block };
process<useResiduals> (bufferView.getWriteSpan (0), condition_data);
}
Expand Down

0 comments on commit 28087c2

Please sign in to comment.