diff --git a/nih_plug/src/params.rs b/nih_plug/src/params.rs index d1dc8505..4a2987a7 100644 --- a/nih_plug/src/params.rs +++ b/nih_plug/src/params.rs @@ -70,7 +70,6 @@ macro_rules! impl_plainparam { /// /// TODO: After implementing VST3, check if we handle parsing failures correctly pub fn from_string(&mut self, string: &str) -> bool { - // TODO: Debug asserts on failures let value = match &self.string_to_value { Some(f) => f(string), // TODO: Check how Rust's parse function handles trailing garbage diff --git a/plugins/gain/src/lib.rs b/plugins/gain/src/lib.rs index 92d6dcbc..d933d379 100644 --- a/plugins/gain/src/lib.rs +++ b/plugins/gain/src/lib.rs @@ -14,6 +14,9 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +#[macro_use] +extern crate nih_plug; + use nih_plug::{ params::{FloatParam, Params, Range}, plugin::{BufferConfig, BusConfig, Plugin}, @@ -87,9 +90,8 @@ impl Plugin for Gain { let num_channels = samples.len(); let num_samples = samples[0].len(); for channel in &samples[1..] { + nih_debug_assert_eq!(channel.len(), num_samples); if channel.len() != num_samples { - // TODO: Debug assert - eprintln!("Mismatched channel lengths, aborting"); return; } }