Skip to content

Commit

Permalink
ConvolverNode: crash explicitly when not able to construct engine
Browse files Browse the repository at this point in the history
  • Loading branch information
orottier committed Dec 1, 2024
1 parent 037c2eb commit 115f04a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/node/convolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ impl ConvolverNode {
// Size of the partition changes a lot the perf...
// - RENDER_QUANTUM_SIZE -> 20x (compared to real-time)
// - RENDER_QUANTUM_SIZE * 8 -> 134x
let _ = convolver.init(RENDER_QUANTUM_SIZE * 8, &samples);
convolver
.init(RENDER_QUANTUM_SIZE * 8, &samples)
.expect("Unable to initialize convolution engine");

// let padded_buffer = AudioBuffer::from(samples, sample_rate);
// let convolve = ConvolverRendererInner::new(padded_buffer);
Expand Down

0 comments on commit 115f04a

Please sign in to comment.