(&mut self, from: OutPinId, to: InPinId, snarl: &mut Snarl<GuiAudioNode>)
| 173 | |
| 174 | impl<'a> DemoViewer<'a> { |
| 175 | fn remove_edge(&mut self, from: OutPinId, to: InPinId, snarl: &mut Snarl<GuiAudioNode>) { |
| 176 | let Some(src_node) = snarl.get_node(from.node) else { |
| 177 | return; |
| 178 | }; |
| 179 | let Some(dst_node) = snarl.get_node(to.node) else { |
| 180 | return; |
| 181 | }; |
| 182 | let src_node = src_node.id; |
| 183 | let dst_node = dst_node.id; |
| 184 | |
| 185 | self.audio_system |
| 186 | .disconnect(src_node, dst_node, from.output as u32, to.input as u32); |
| 187 | |
| 188 | snarl.disconnect(from, to); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | impl<'a> SnarlViewer<GuiAudioNode> for DemoViewer<'a> { |
no test coverage detected