From e0f51d04a2601aa58a60334bb1858fbdc4849a37 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Tue, 19 Jul 2022 05:55:10 +0200 Subject: [PATCH] fix formatting --- src/nodes/node_conf.rs | 11 +++-------- src/nodes/node_exec.rs | 4 ++-- tests/node_delay.rs | 2 +- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/nodes/node_conf.rs b/src/nodes/node_conf.rs index f067199..ba9f313 100644 --- a/src/nodes/node_conf.rs +++ b/src/nodes/node_conf.rs @@ -3,8 +3,8 @@ // See README.md and COPYING for details. use super::{ - FeedbackFilter, GraphMessage, NodeOp, NodeProg, MAX_ALLOCATED_NODES, - MAX_AVAIL_TRACKERS, MAX_INPUTS, UNUSED_MONITOR_IDX, + FeedbackFilter, GraphMessage, NodeOp, NodeProg, MAX_ALLOCATED_NODES, MAX_AVAIL_TRACKERS, + MAX_INPUTS, UNUSED_MONITOR_IDX, }; use crate::dsp::tracker::{PatternData, Tracker}; use crate::dsp::{node_factory, Node, NodeId, NodeInfo, ParamId, SAtom}; @@ -245,12 +245,7 @@ impl SharedNodeConf { } ( - Self { - node_ctx_values, - graph_update_prod: rb_graph_prod, - monitor, - drop_thread, - }, + Self { node_ctx_values, graph_update_prod: rb_graph_prod, monitor, drop_thread }, SharedNodeExec { node_ctx_values: exec_node_ctx_vals, graph_update_con: rb_graph_con, diff --git a/src/nodes/node_exec.rs b/src/nodes/node_exec.rs index 069ffb2..699d026 100644 --- a/src/nodes/node_exec.rs +++ b/src/nodes/node_exec.rs @@ -3,8 +3,8 @@ // See README.md and COPYING for details. use super::{ - DropMsg, GraphMessage, NodeProg, FB_DELAY_TIME_US, MAX_ALLOCATED_NODES, - MAX_FB_DELAY_SIZE, MAX_SMOOTHERS, UNUSED_MONITOR_IDX, + DropMsg, GraphMessage, NodeProg, FB_DELAY_TIME_US, MAX_ALLOCATED_NODES, MAX_FB_DELAY_SIZE, + MAX_SMOOTHERS, UNUSED_MONITOR_IDX, }; use crate::dsp::{Node, NodeContext, NodeId, MAX_BLOCK_SIZE}; use crate::monitor::{MonitorBackend, MON_SIG_CNT}; diff --git a/tests/node_delay.rs b/tests/node_delay.rs index 9bbe833..d137a60 100644 --- a/tests/node_delay.rs +++ b/tests/node_delay.rs @@ -119,7 +119,7 @@ fn check_node_delay_2() { vec![ // 10ms smoothing time for "inp" 0.001133, // 30ms delaytime just mixing the 0.5: - 0.5, 0.5, 0.5, // the delayed smoothing ramp (10ms): + 0.5, 0.5, 0.5, // the delayed smoothing ramp (10ms): 0.951113, // the delay + input signal: 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ]