Skip to content

Commit 115f04a

Browse files
committed
ConvolverNode: crash explicitly when not able to construct engine
1 parent 037c2eb commit 115f04a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/node/convolver.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ impl ConvolverNode {
225225
// Size of the partition changes a lot the perf...
226226
// - RENDER_QUANTUM_SIZE -> 20x (compared to real-time)
227227
// - RENDER_QUANTUM_SIZE * 8 -> 134x
228-
let _ = convolver.init(RENDER_QUANTUM_SIZE * 8, &samples);
228+
convolver
229+
.init(RENDER_QUANTUM_SIZE * 8, &samples)
230+
.expect("Unable to initialize convolution engine");
229231

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

0 commit comments

Comments
 (0)