mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Workaround weird parsing bug
This commit is contained in:
parent
ed425292f3
commit
c76b7b472f
1 changed files with 6 additions and 2 deletions
|
@ -56,17 +56,21 @@ fn mk_sink<S: Sink + Open + 'static>() -> Box<Sink> {
|
|||
|
||||
#[cfg(feature = "portaudio-backend")]
|
||||
mod portaudio;
|
||||
#[cfg(feature = "portaudio-backend")]
|
||||
use self::portaudio::PortAudioSink;
|
||||
|
||||
#[cfg(feature = "pulseaudio-backend")]
|
||||
mod pulseaudio;
|
||||
#[cfg(feature = "pulseaudio-backend")]
|
||||
use self::pulseaudio::PulseAudioSink;
|
||||
|
||||
|
||||
declare_backends! {
|
||||
pub const BACKENDS : &'static [(&'static str, &'static (Fn() -> Box<Sink> + Sync + Send + 'static))] = &[
|
||||
#[cfg(feature = "portaudio-backend")]
|
||||
("portaudio", &mk_sink::<self::portaudio::PortAudioSink>),
|
||||
("portaudio", &mk_sink::<PortAudioSink>),
|
||||
#[cfg(feature = "pulseaudio-backend")]
|
||||
("pulseaudio", &mk_sink::<self::pulseaudio::PulseAudioSink>),
|
||||
("pulseaudio", &mk_sink::<PulseAudioSink>),
|
||||
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue