1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
ix!();
pub trait Redo {
fn redo(&mut self);
}
pub trait Named {
const NAME: &'static str;
}
pub trait MemcpyFromOther {
fn memcpy_from_other(&mut self,
other: *mut Self) ;
}
pub trait UpdateDisplay {
fn update_display(&mut self);
}
pub trait AllowDisplay {
fn allow_display(&self)
-> bool { true }
}
pub trait PlotMagnitude {
fn plot_magnitude(&self,
f: f32)
-> f32;
}
pub trait SetBlockSize {
fn set_blocksize(&mut self,
bs: i32);
}
pub trait SetSampleRate {
fn set_samplerate(&mut self,
sr: f32);
}
pub trait SetPitch {
fn set_pitch(&mut self, _pitch: f32, _is_display: bool) {}
}
pub trait CoefficientLoadStore {
fn load_coefficients(&mut self);
unsafe fn store_coefficients(&mut self,
coefficient_a: *mut f64,
coefficient_b: *mut f64);
}