Fixes compilation errors

This commit is contained in:
Lawrence Jones 2015-12-18 18:01:25 +00:00
parent fe56604037
commit 85c1925f8d
5 changed files with 10 additions and 5 deletions

6
Cargo.lock generated
View file

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

View file

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

2
cache/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -5,6 +5,6 @@ authors = ["Paul Liétar <paul@lietar.net>"]
build = "build.rs"
[dependencies]
mod_path = "~0.1.5"
mod_path = "~0.1.6"
protobuf = "~1.0.4"

View file

@ -76,7 +76,7 @@ impl PlayerInternal {
fn run(self) {
portaudio::initialize().unwrap();
let stream = portaudio::stream::Stream::<i16>::open_default(
let stream = portaudio::stream::Stream::<i16, i16>::open_default(
0, 2, 44100.0,
portaudio::stream::FRAMES_PER_BUFFER_UNSPECIFIED,
None