Add a "null" implementation for platforms that aren't supported

This commit is contained in:
Pierre Krieger 2015-01-09 16:06:24 +01:00
parent 234ccfee63
commit 48efe03661
2 changed files with 43 additions and 3 deletions

View file

@ -51,9 +51,6 @@ If you have the possibility, you should try to match the format of the voice.
#![feature(unsafe_destructor)]
#![unstable]
#[cfg(all(not(windows), not(unix)))]
use this_platform_is_not_supported;
pub use samples_formats::{SampleFormat, Sample};
use std::ops::{Deref, DerefMut};
@ -68,6 +65,10 @@ mod cpal_impl;
#[path="wasapi/mod.rs"]
mod cpal_impl;
#[cfg(all(not(windows), not(unix)))]
#[path="null/mod.rs"]
mod cpal_impl;
/// Controls a sound output. A typical application has one `Voice` for each sound
/// it wants to output.
///