commit
7029c74699
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
|
|
||||||
name = "cpal"
|
name = "cpal"
|
||||||
version = "0.0.10-pre"
|
version = "0.0.11-pre"
|
||||||
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
||||||
description = "Cross-platform audio playing library in pure Rust."
|
description = "Cross-platform audio playing library in pure Rust."
|
||||||
repository = "https://github.com/tomaka/cpal"
|
repository = "https://github.com/tomaka/cpal"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
extern crate cpal;
|
extern crate cpal;
|
||||||
extern crate vorbis;
|
extern crate vorbis;
|
||||||
|
|
||||||
use std::io::BufReader;
|
use std::old_io::BufReader;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut channel = cpal::Voice::new();
|
let mut channel = cpal::Voice::new();
|
||||||
|
|
|
@ -58,7 +58,7 @@ impl Voice {
|
||||||
|
|
||||||
if frames_available == 0 {
|
if frames_available == 0 {
|
||||||
// TODO:
|
// TODO:
|
||||||
::std::io::timer::sleep(::std::time::duration::Duration::milliseconds(1));
|
::std::old_io::timer::sleep(::std::time::duration::Duration::milliseconds(1));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue