File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -798,7 +798,7 @@ impl Device {
798798 sample_format : SampleFormat ,
799799 data_callback : D ,
800800 error_callback : E ,
801- timeout : Option < Duration > ,
801+ _timeout : Option < Duration > ,
802802 wasapi_config : Option < & super :: WasapiStreamConfig > ,
803803 ) -> Result < Stream , BuildStreamError >
804804 where
@@ -825,7 +825,7 @@ impl Device {
825825 wasapi_config : Option < & super :: WasapiStreamConfig > ,
826826 ) -> Result < Stream , BuildStreamError >
827827 where
828- D : FnMut ( & Data , & OutputCallbackInfo ) + Send + ' static ,
828+ D : FnMut ( & mut Data , & OutputCallbackInfo ) + Send + ' static ,
829829 E : FnMut ( StreamError ) + Send + ' static ,
830830 {
831831 let stream_inner =
Original file line number Diff line number Diff line change @@ -2436,6 +2436,7 @@ impl StreamConfigBuilder {
24362436 )
24372437 . map ( crate :: Stream :: from) ;
24382438 }
2439+ #[ cfg( any( feature = "asio" , feature = "jack" ) ) ]
24392440 _ => { } // Not WASAPI device, continue to standard method
24402441 }
24412442 }
@@ -2541,6 +2542,7 @@ impl StreamConfigBuilder {
25412542 )
25422543 . map ( crate :: Stream :: from) ;
25432544 }
2545+ #[ cfg( any( feature = "asio" , feature = "jack" ) ) ]
25442546 _ => { } // Not WASAPI device, continue to standard method
25452547 }
25462548 }
You can’t perform that action at this time.
0 commit comments