File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,18 @@ pub mod prelude {
17
17
}
18
18
19
19
20
+ #[ derive( Debug , Copy , Clone ) ]
21
+ pub struct Configuration {
22
+ pub sample_rate : u32 ,
23
+ pub channels : usize ,
24
+ }
25
+
26
+ pub trait Provider : Send + ' static {
27
+ fn on_configuration_changed ( & mut self , _: Option < Configuration > ) ;
28
+ fn fill_buffer ( & mut self , buffer : & mut [ f32 ] ) ;
29
+ }
30
+
31
+
20
32
pub struct System {
21
33
stream_shared : Arc < SharedStreamState > ,
22
34
stream_state : StreamState ,
@@ -115,14 +127,3 @@ impl System {
115
127
}
116
128
}
117
129
}
118
-
119
- #[ derive( Debug , Copy , Clone ) ]
120
- pub struct Configuration {
121
- pub sample_rate : u32 ,
122
- pub channels : usize ,
123
- }
124
-
125
- pub trait Provider : Send + ' static {
126
- fn on_configuration_changed ( & mut self , _: Option < Configuration > ) ;
127
- fn fill_buffer ( & mut self , buffer : & mut [ f32 ] ) ;
128
- }
You can’t perform that action at this time.
0 commit comments