We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42aa3d1 commit 3235d24Copy full SHA for 3235d24
src/node/waveshaper.rs
@@ -165,17 +165,15 @@ impl WaveShaperNode {
165
166
let node = context.register(move |registration| {
167
let sample_rate = context.sample_rate() as usize;
168
- let channel_config = channel_config.into();
169
170
- let config = RendererConfig {
+ let renderer = WaveShaperRenderer::new(RendererConfig {
171
oversample,
172
sample_rate,
173
- };
+ });
174
175
- let renderer = WaveShaperRenderer::new(config);
176
let node = Self {
177
registration,
178
- channel_config,
+ channel_config: channel_config.into(),
179
curve: OnceCell::new(),
180
oversample: AtomicU32::new(oversample as u32),
181
};
0 commit comments