diff --git a/Cargo.lock b/Cargo.lock index e4a50e10..5ab0435d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -106,7 +106,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" name = "librespot-protocol" version = "0.1.0" dependencies = [ - "mod_path 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "mod_path 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "protobuf 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -120,7 +120,7 @@ dependencies = [ [[package]] name = "mod_path" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -174,7 +174,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "protobuf_macros" version = "0.1.0" -source = "git+https://github.com/plietar/rust-protobuf-macros.git#2b6a8129e015945300cb2bb7efae2ed78042ed48" +source = "git+https://github.com/plietar/rust-protobuf-macros.git#4f4a16e3e643caf0566ca0a97d65b46b509ee542" [[package]] name = "rand" diff --git a/README.md b/README.md index b8d644a7..0360dabb 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,9 @@ You will also need the protobuf compiler, and the [rust-protobuf](https://github.com/stepancheg/rust-protobuf) plugin. `protoc-gen-rust` must be in your `$PATH`. +Also required is an installation of [portaudio](http://portaudio.com/), which +can be installed via `brew install portaudio` for an OS X machine. + Once you've cloned this repository you can build *librespot* using `cargo`. ```shell cargo build diff --git a/cache/.gitignore b/cache/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/protocol/Cargo.toml b/protocol/Cargo.toml index 2089b4fe..0a078eb7 100644 --- a/protocol/Cargo.toml +++ b/protocol/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Paul LiƩtar "] build = "build.rs" [dependencies] -mod_path = "~0.1.5" +mod_path = "~0.1.6" protobuf = "~1.0.4" diff --git a/src/player.rs b/src/player.rs index 0addce23..5d455b0a 100644 --- a/src/player.rs +++ b/src/player.rs @@ -76,7 +76,7 @@ impl PlayerInternal { fn run(self) { portaudio::initialize().unwrap(); - let stream = portaudio::stream::Stream::::open_default( + let stream = portaudio::stream::Stream::::open_default( 0, 2, 44100.0, portaudio::stream::FRAMES_PER_BUFFER_UNSPECIFIED, None