Skip to main content

assert_nonzero

Function assert_nonzero 

Source
pub fn assert_nonzero<P: PluginExport>(result: &DriverResult<P>)
Expand description

Assert that at least one sample anywhere in the output is above the audible threshold.

ยงPanics

Panics if every sample is at or below AUDIBLE_THRESHOLD (1e-3).