| 13 | pub const SAMPLE_PATH: &str = "assets/test_files/bird-sound.wav"; |
| 14 | |
| 15 | pub struct AudioSystem { |
| 16 | cx: FirewheelContext, |
| 17 | stream: CpalStream, |
| 18 | |
| 19 | sampler_params: Memo<SamplerNode>, |
| 20 | sampler_node_id: NodeID, |
| 21 | |
| 22 | pub triple_buffer_params: Memo<TripleBufferNode>, |
| 23 | pub triple_buffer_node_id: NodeID, |
| 24 | pub triple_buffer_state: TripleBufferState, |
| 25 | pub triple_buffer_bypassed: bool, |
| 26 | } |
| 27 | |
| 28 | impl AudioSystem { |
| 29 | pub fn new(window_size: u32) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected