diff --git a/src/worklet.rs b/src/worklet.rs index c770356a..778d275b 100644 --- a/src/worklet.rs +++ b/src/worklet.rs @@ -40,6 +40,10 @@ impl<'a> AudioParamValues<'a> { let id = self.map.get(name).unwrap(); self.values.get(id) } + + pub fn keys(&self) -> impl Iterator { + self.map.keys().map(|s| s.as_ref()) + } } /// Audio processing code that runs on the audio rendering thread.