(
&mut self,
input: &dyn Adapter<'_, f32>,
output: &mut dyn AdapterMut<'_, f32>,
info: BackendProcessInfo,
)
| 81 | } |
| 82 | |
| 83 | pub fn process( |
| 84 | &mut self, |
| 85 | input: &dyn Adapter<f32>, |
| 86 | output: &mut dyn AdapterMut<f32>, |
| 87 | info: BackendProcessInfo, |
| 88 | ) { |
| 89 | self.poll_drop_flag(); |
| 90 | |
| 91 | if let Some(inner) = &mut self.inner { |
| 92 | inner.process(input, output, info); |
| 93 | } else { |
| 94 | output.fill_frames_with(0, info.frames, &0.0); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | fn poll_drop_flag(&mut self) { |
| 99 | if self.inner.is_some() && self.drop_flag.load(Ordering::Relaxed) { |
no test coverage detected