oml_audio/sound/
sound_stub.rs1
2use crate::FileLoader;
3
4
5#[derive(Debug)]
6pub struct SoundPoolStub {
7 debug: bool,
8}
9
10impl SoundPoolStub {
11
12 pub fn new() -> Self {
13 Self {
14 debug: false,
15 }
16 }
17
18 pub fn load( &mut self, fileloader: &mut impl FileLoader, name: &str, number: u16 ) -> bool {
19 true
20 }
21
22 pub fn play( &mut self ) {
23 }
24
25 pub fn update( &mut self, _time_step: f64 ) {
26 }
27
28 pub fn next_sample( &mut self ) -> f32 {
29 0.0
31 }
32
33 pub fn enable_debug( &mut self ) {
34 self.debug = true;
35 }
36 pub fn disable_debug( &mut self ) {
37 self.debug = false;
38 }
39
40}
41