From 2e6143269aed56cb60807491502ab4da94c55e35 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 29 Jan 2015 14:54:31 +0100 Subject: [PATCH] Update for rustc --- Cargo.toml | 2 +- examples/music.rs | 2 +- src/wasapi/mod.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b0f8554..0247aa2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "cpal" -version = "0.0.10-pre" +version = "0.0.11-pre" authors = ["Pierre Krieger "] description = "Cross-platform audio playing library in pure Rust." repository = "https://github.com/tomaka/cpal" diff --git a/examples/music.rs b/examples/music.rs index 1abd05f..08554b0 100644 --- a/examples/music.rs +++ b/examples/music.rs @@ -1,7 +1,7 @@ extern crate cpal; extern crate vorbis; -use std::io::BufReader; +use std::old_io::BufReader; fn main() { let mut channel = cpal::Voice::new(); diff --git a/src/wasapi/mod.rs b/src/wasapi/mod.rs index 7efe374..538cf67 100644 --- a/src/wasapi/mod.rs +++ b/src/wasapi/mod.rs @@ -58,7 +58,7 @@ impl Voice { if frames_available == 0 { // TODO: - ::std::io::timer::sleep(::std::time::duration::Duration::milliseconds(1)); + ::std::old_io::timer::sleep(::std::time::duration::Duration::milliseconds(1)); continue; }