File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ fn main() {
7878 . resonance (input . mouse. y_01 ()),
7979 )
8080 . filter (chorus ())
81- . filter (reverb :: default ());
81+ . filter (reverb ());
8282
8383 // Play the audio signal, visualizing its waveform in the window.
8484 window . play_mono (sig , Default :: default ()). unwrap ();
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ fn main() {
1919 . resonance ( input. mouse . y_01 ( ) ) ,
2020 )
2121 . filter ( chorus ( ) )
22- . filter ( reverb:: default ( ) ) ;
22+ . filter ( reverb ( ) ) ;
2323
2424 // Play the audio signal, visualizing its waveform in the window.
2525 window. play_mono ( sig, Default :: default ( ) ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -82,6 +82,12 @@ pub mod reverb {
8282 pub use freeverb as default;
8383}
8484
85+ // Rust doesn't seem to allow functions to be renamed to names that would conflict with module
86+ // names in the same scope, so this wrapper function appears ot be necessary.
87+ pub fn reverb ( ) -> reverb_freeverb:: Props < f32 , f32 , f32 > {
88+ reverb_freeverb ( )
89+ }
90+
8591pub mod sample_playback;
8692pub use sample_playback:: sample_playback;
8793
You can’t perform that action at this time.
0 commit comments