Add a "null" implementation for platforms that aren't supported
This commit is contained in:
parent
234ccfee63
commit
48efe03661
2 changed files with 43 additions and 3 deletions
|
|
@ -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.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue