From f134836bbb6373c2db87d31e66c8a55b76e177fc Mon Sep 17 00:00:00 2001 From: Otto Date: Sat, 4 May 2024 07:42:22 +0200 Subject: [PATCH] Expose AudioParamValues.keys iterator for convenience --- src/worklet.rs | 4 ++++ 1 file changed, 4 insertions(+) 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.