qwac/audio/
delay_time.rs

1use super::{Output, Param, Slot};
2use qwac_sys::audio;
3
4#[derive(Debug)]
5pub struct DelayTime {
6    pub(super) id: i32,
7}
8
9impl Slot for DelayTime {
10    fn id(&self) -> i32 {
11        self.id
12    }
13}
14
15impl Output for DelayTime {}
16impl Param for DelayTime {}
17
18impl Drop for DelayTime {
19    fn drop(&mut self) {
20        unsafe {
21            audio::drop(self.id());
22        }
23    }
24}