Restore the null implementation and compile it every time

This commit is contained in:
Pierre Krieger 2015-09-10 18:37:37 +02:00
parent 52e6e8231f
commit d9eae23023
2 changed files with 59 additions and 12 deletions

View file

@ -42,10 +42,14 @@ extern crate lazy_static;
pub use samples_formats::{SampleFormat, Sample};
#[cfg(all(not(windows), not(unix)))]
use null as cpal_impl;
use std::fmt;
use std::error::Error;
use std::ops::{Deref, DerefMut};
mod null;
mod samples_formats;
#[cfg(target_os = "linux")]
@ -60,10 +64,6 @@ mod cpal_impl;
#[path="coreaudio/mod.rs"]
mod cpal_impl;
#[cfg(all(not(windows), not(unix)))]
#[path="null/mod.rs"]
mod cpal_impl;
/// An iterator for the list of formats that are supported by the backend.
pub struct EndpointsIterator(cpal_impl::EndpointsIterator);