diff --git a/Cargo.toml b/Cargo.toml index 3019926..95917d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,11 +10,11 @@ license = "Apache-2.0" keywords = ["audio", "sound"] [target.i686-pc-windows-gnu.dependencies.winapi] -version = "^0.0.2" +version = "^0.0.3" features = ["ole32"] [target.x86_64-pc-windows-gnu.dependencies.winapi] -version = "^0.0.2" +version = "^0.0.3" features = ["ole32"] [target.i686-unknown-linux-gnu.dependencies.alsa-sys] diff --git a/examples/music.rs b/examples/music.rs index 39aa106..1abd05f 100644 --- a/examples/music.rs +++ b/examples/music.rs @@ -7,7 +7,7 @@ fn main() { let mut channel = cpal::Voice::new(); channel.play(); - let mut decoder = vorbis::Decoder::new(BufReader::new(include_bin!("music.ogg"))) + let mut decoder = vorbis::Decoder::new(BufReader::new(include_bytes!("music.ogg"))) .unwrap(); 'main: for packet in decoder.packets() { diff --git a/src/alsa/mod.rs b/src/alsa/mod.rs index 9f796a9..36c7d40 100644 --- a/src/alsa/mod.rs +++ b/src/alsa/mod.rs @@ -74,6 +74,9 @@ impl Voice { } } +unsafe impl Send for Voice {} +unsafe impl Sync for Voice {} + impl Drop for Voice { fn drop(&mut self) { unsafe { diff --git a/src/wasapi/mod.rs b/src/wasapi/mod.rs index 53a258d..93300e2 100644 --- a/src/wasapi/mod.rs +++ b/src/wasapi/mod.rs @@ -116,6 +116,9 @@ impl Voice { } } +unsafe impl Send for Voice {} +unsafe impl Sync for Voice {} + impl Drop for Voice { fn drop(&mut self) { unsafe {