mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fixes compilation errors
This commit is contained in:
parent
fe56604037
commit
85c1925f8d
5 changed files with 10 additions and 5 deletions
6
Cargo.lock
generated
6
Cargo.lock
generated
|
@ -106,7 +106,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
name = "librespot-protocol"
|
name = "librespot-protocol"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
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)",
|
"protobuf 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "mod_path"
|
name = "mod_path"
|
||||||
version = "0.1.5"
|
version = "0.1.6"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -174,7 +174,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "protobuf_macros"
|
name = "protobuf_macros"
|
||||||
version = "0.1.0"
|
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]]
|
[[package]]
|
||||||
name = "rand"
|
name = "rand"
|
||||||
|
|
|
@ -16,6 +16,9 @@ You will also need the protobuf compiler, and the
|
||||||
[rust-protobuf](https://github.com/stepancheg/rust-protobuf) plugin.
|
[rust-protobuf](https://github.com/stepancheg/rust-protobuf) plugin.
|
||||||
`protoc-gen-rust` must be in your `$PATH`.
|
`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`.
|
Once you've cloned this repository you can build *librespot* using `cargo`.
|
||||||
```shell
|
```shell
|
||||||
cargo build
|
cargo build
|
||||||
|
|
2
cache/.gitignore
vendored
Normal file
2
cache/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
*
|
||||||
|
!.gitignore
|
|
@ -5,6 +5,6 @@ authors = ["Paul Liétar <paul@lietar.net>"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
mod_path = "~0.1.5"
|
mod_path = "~0.1.6"
|
||||||
protobuf = "~1.0.4"
|
protobuf = "~1.0.4"
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ impl PlayerInternal {
|
||||||
fn run(self) {
|
fn run(self) {
|
||||||
portaudio::initialize().unwrap();
|
portaudio::initialize().unwrap();
|
||||||
|
|
||||||
let stream = portaudio::stream::Stream::<i16>::open_default(
|
let stream = portaudio::stream::Stream::<i16, i16>::open_default(
|
||||||
0, 2, 44100.0,
|
0, 2, 44100.0,
|
||||||
portaudio::stream::FRAMES_PER_BUFFER_UNSPECIFIED,
|
portaudio::stream::FRAMES_PER_BUFFER_UNSPECIFIED,
|
||||||
None
|
None
|
||||||
|
|
Loading…
Reference in a new issue