@@ -748,18 +748,7 @@ fn get_setup() -> Setup {
748748 } )
749749 . unwrap_or_default ( ) ;
750750
751- #[ cfg( any(
752- feature = "alsa-backend" ,
753- feature = "rodio-backend" ,
754- feature = "portaudio-backend"
755- ) ) ]
756751 let device = opt_str ( DEVICE ) ;
757-
758- #[ cfg( any(
759- feature = "alsa-backend" ,
760- feature = "rodio-backend" ,
761- feature = "portaudio-backend"
762- ) ) ]
763752 if let Some ( ref value) = device {
764753 if value == "?" {
765754 backend ( device, format) ;
@@ -769,25 +758,6 @@ fn get_setup() -> Setup {
769758 }
770759 }
771760
772- #[ cfg( not( any(
773- feature = "alsa-backend" ,
774- feature = "rodio-backend" ,
775- feature = "portaudio-backend"
776- ) ) ) ]
777- let device: Option < String > = None ;
778-
779- #[ cfg( not( any(
780- feature = "alsa-backend" ,
781- feature = "rodio-backend" ,
782- feature = "portaudio-backend"
783- ) ) ) ]
784- if opt_present ( DEVICE ) {
785- warn ! (
786- "The `--{}` / `-{}` option is not supported by the included audio backend(s), and has no effect." ,
787- DEVICE , DEVICE_SHORT ,
788- ) ;
789- }
790-
791761 #[ cfg( feature = "alsa-backend" ) ]
792762 let mixer_type = opt_str ( MIXER_TYPE ) ;
793763 #[ cfg( not( feature = "alsa-backend" ) ) ]
0 commit comments