(&mut self, index: usize)
| 605 | static SINE_TABLE: OnceLock<[f32; SINE_TABLE_SIZE]> = OnceLock::new(); |
| 606 | |
| 607 | #[cfg(feature = "playback")] |
| 608 | pub struct BuiltInMidiMixerSource { |
| 609 | voices: Vec<Voice>, |
| 610 | voice_index: HashMap<u64, usize>, |
| 611 | rx: Receiver<MidiMixerControl>, |
| 612 | stopped: bool, |
| 613 | sine: &'static [f32; SINE_TABLE_SIZE], |
| 614 | control_counter: u32, |
| 615 | } |
| 616 | |
| 617 | #[cfg(feature = "playback")] |
| 618 | impl BuiltInMidiMixerSource { |
| 619 | pub fn new(rx: Receiver<MidiMixerControl>) -> Self { |
| 620 | Self { |
| 621 | voices: Vec::with_capacity(BUILT_IN_MIXER_MAX_VOICES), |
no test coverage detected