rawdio 0.14.0

An Audio Engine, inspired by the Web Audio API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::commands::Id;

pub struct Node<NodeData> {
    pub node_data: NodeData,
    pub outgoing: Option<Id>,
    pub incoming: Option<Id>,
}

impl<NodeData> Node<NodeData> {
    pub fn new(node_data: NodeData) -> Self {
        Self {
            node_data,
            outgoing: None,
            incoming: None,
        }
    }
}