mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Merge pull request #13 from lawrencejones/up-and-running
Runs against nightly build v1.7.0
This commit is contained in:
commit
2b420fa81d
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"
|
||||
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"
|
||||
|
|
|
@ -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
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"
|
||||
|
||||
[dependencies]
|
||||
mod_path = "~0.1.5"
|
||||
mod_path = "~0.1.6"
|
||||
protobuf = "~1.0.4"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue