commit
7029c74699
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
|
||||
name = "cpal"
|
||||
version = "0.0.10-pre"
|
||||
version = "0.0.11-pre"
|
||||
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
||||
description = "Cross-platform audio playing library in pure Rust."
|
||||
repository = "https://github.com/tomaka/cpal"
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue