Skip to content

Commit 3235d24

Browse files
b-maorottier
authored andcommitted
cleaning
1 parent 42aa3d1 commit 3235d24

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/node/waveshaper.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,15 @@ impl WaveShaperNode {
165165

166166
let node = context.register(move |registration| {
167167
let sample_rate = context.sample_rate() as usize;
168-
let channel_config = channel_config.into();
169168

170-
let config = RendererConfig {
169+
let renderer = WaveShaperRenderer::new(RendererConfig {
171170
oversample,
172171
sample_rate,
173-
};
172+
});
174173

175-
let renderer = WaveShaperRenderer::new(config);
176174
let node = Self {
177175
registration,
178-
channel_config,
176+
channel_config: channel_config.into(),
179177
curve: OnceCell::new(),
180178
oversample: AtomicU32::new(oversample as u32),
181179
};

0 commit comments

Comments
 (0)