|
@@ -54,6 +54,11 @@ fn mk_sink<S: Sink + Open + 'static>(device: Option<&str>) -> Box<Sink> {
|
|
Box::new(S::open(device))
|
|
Box::new(S::open(device))
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#[cfg(feature = "alsa-backend")]
|
|
|
|
+mod alsa;
|
|
|
|
+#[cfg(feature = "alsa-backend")]
|
|
|
|
+use self::alsa::AlsaSink;
|
|
|
|
+
|
|
#[cfg(feature = "portaudio-backend")]
|
|
#[cfg(feature = "portaudio-backend")]
|
|
mod portaudio;
|
|
mod portaudio;
|
|
#[cfg(feature = "portaudio-backend")]
|
|
#[cfg(feature = "portaudio-backend")]
|
|
@@ -70,6 +75,8 @@ declare_backends! {
|
|
(&'static str,
|
|
(&'static str,
|
|
&'static (Fn(Option<&str>) -> Box<Sink> + Sync + Send + 'static))
|
|
&'static (Fn(Option<&str>) -> Box<Sink> + Sync + Send + 'static))
|
|
] = &[
|
|
] = &[
|
|
|
|
+ #[cfg(feature = "alsa-backend")]
|
|
|
|
+ ("alsa", &mk_sink::<AlsaSink>),
|
|
#[cfg(feature = "portaudio-backend")]
|
|
#[cfg(feature = "portaudio-backend")]
|
|
("portaudio", &mk_sink::<PortAudioSink>),
|
|
("portaudio", &mk_sink::<PortAudioSink>),
|
|
#[cfg(feature = "pulseaudio-backend")]
|
|
#[cfg(feature = "pulseaudio-backend")]
|