Update for changes in rustc

This commit is contained in:
Pierre Krieger 2014-12-30 08:35:13 +01:00
parent 7389ebf84b
commit 7adfdb4461
4 changed files with 9 additions and 3 deletions

View File

@ -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]

View File

@ -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() {

View File

@ -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 {

View File

@ -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 {