Commit graph

498 commits

Author SHA1 Message Date
Paul Liétar
7dd5a40d21
travis: Use cargo --locked everywhere
This will prevent `Cargo.lock` from getting out of sync
2018-02-13 02:07:28 +01:00
Anton Voyl
e276d39704 core: remove protobuf_macros (#146)
Fixes #129
2018-02-12 15:58:09 +01:00
Paul Liétar
0cf11dae5c
Merge pull request #147 from librespot-org/replace
Implement [Replace] for rust-crypto
2018-02-12 15:57:14 +01:00
Sasha Hilton
234958672f Implement [replace] for rust-crypto 2018-02-12 14:48:39 +01:00
Sasha Hilton
9dc03b5c34
Merge pull request #144 from librespot-org/awiouy-core_API
Changes in line with API review.
2018-02-12 02:02:05 +01:00
Sasha Hilton
90ae9d713d Fix conflicts from PR #143 2018-02-12 01:12:02 +01:00
Sasha Hilton
2617a9cfe2
Merge pull request #139 from michaelherger/rustify
Rustify some recent changes according to plietar
2018-02-12 00:59:06 +01:00
awiouy
b7c32e9d6d rustfmt: connect 2018-02-11 23:55:41 +01:00
awiouy
d900134114 connect: discovery and spirc 2018-02-11 23:55:41 +01:00
awiouy
191caca518 core API: move Bitrate and PlayerConfig from core to playback 2018-02-11 23:55:41 +01:00
Paul Liétar
685c607c15
Merge pull request #141 from awiouy/rustfmt
rustfmt
2018-02-11 22:47:07 +01:00
awiouy
8658ad3a62 .travis.yml: add rustfmt 2018-02-11 13:28:06 +01:00
awiouy
c9ba73c9ef rustfmt: core 2018-02-11 12:37:08 +01:00
awiouy
0d92ac74d1 Add rustfmt.toml 2018-02-11 12:33:00 +01:00
Michael Herger
4636cb71b9 Print more descriptive error message when we fail to bind zeroconf to the given port. 2018-02-11 06:32:08 +01:00
Michael Herger
5ed4639cca Remove the -z as an alias for the --zeroconf-port parameter 2018-02-11 06:32:07 +01:00
Michael Herger
12487966b2 Somewhat uniform coding style might help myself to better understand Rust :-) 2018-02-11 06:32:07 +01:00
Sasha Hilton
f3bb85c33a
Merge pull request #137 from awiouy/core_API
core API review changes.
2018-02-10 23:14:41 +01:00
awiouy
a35edc6af4 core API: move run_program to player.rs 2018-02-10 17:58:15 +01:00
awiouy
496a802248 core API: move subfile.rs to player.rs 2018-02-10 17:58:15 +01:00
awiouy
d7fa1464ff core API: move mkdir_existing to cache.rs 2018-02-10 17:58:15 +01:00
awiouy
77882836ce core API: move now_ms to spirc.rs 2018-02-10 17:58:15 +01:00
awiouy
55f27a9e0a core API: SessionWeak.try_upgrade(), SessionWeak.upgrade() 2018-02-10 17:58:15 +01:00
awiouy
ae85e69aca core API: Session.weak() 2018-02-10 17:58:15 +01:00
awiouy
72cef9a10c core API: Session.config() 2018-02-10 17:58:15 +01:00
Paul Liétar
e80b97e7b7
Merge pull request #127 from kingosticks/fix/skipping-with-queued-tracks
Improved next/prev handling for queued tracks. (v2)
2018-02-10 17:36:47 +01:00
Nick Steel
d05fa10067 Improved next/prev handling for queued tracks.
1) A queued track is removed once it has become the current track.
   Note that the track doesn't need to actually play i.e. it could
   have been immediately skipped over with 'next()'. This is
   implemented in 'consume_queued_track()'.

2) Queued tracks are always positioned immediately after the current
   track. 1) ensures this is true for 'next()' but 'prev()' requires
   all the queued tracks are actually moved for this to remain the
   case.

Also fixed the case where 'prev()' on the first track would incorrectly
wrap back around to the last track even when repeat was disabled. The
correct behaviour is to remain on the first track and just seek to the
start.

For example, with the following tracks and repeat enabled:

TrackA, TrackB, TrackC-Q, TrackD-Q, TrackE
        ^^^^^^

Here, the result of 'prev' changes the current track from TrackB to
TrackA and the queued tracks (TrackC, TrackD) move to the position
immediately after TrackA:

TrackA, TrackC-Q, TrackD-Q, TrackB, TrackE
^^^^^^

Calling 'prev' again results in the current track wrapping back around
to TrackE and the queued tracks moving after that same track:

TrackA, TrackB, TrackE, TrackC-Q, TrackD-Q
                ^^^^^^
2018-02-10 15:17:30 +00:00
awiouy
a8bb696be8 core API: MercurySender::new 2018-02-10 08:23:46 +01:00
Sasha Hilton
b0244ad42d
Merge pull request #135 from librespot-org/playback
Move audio backends into librespot-playback crate
2018-02-10 02:15:14 +01:00
Sasha Hilton
930bc3f841 Remove default option iin playback/Cargo.toml 2018-02-10 01:44:26 +01:00
Paul Liétar
ce2821408b
Merge pull request #136 from awiouy/core_API
core API
2018-02-10 00:47:20 +01:00
awiouy
762b75803b core API: connection 2018-02-09 21:36:18 +01:00
awiouy
4c23803c84 core API: cache.rs 2018-02-09 21:29:29 +01:00
awiouy
a105fd44c4 core API: save_to_file, save_to_writer 2018-02-09 21:24:58 +01:00
awiouy
c86f790986 core API: from_file, from_reader 2018-02-09 21:18:06 +01:00
awiouy
434b824c6e core API: dispatch 2018-02-09 21:06:16 +01:00
awiouy
d34068c5a7 core API: apresolve 2018-02-09 20:57:49 +01:00
Sasha Hilton
4f605dfd86 Correct feature flags 2018-02-09 02:14:11 +01:00
Sasha Hilton
1fb65354b0 Move audio backends into seperate crate 2018-02-09 02:05:50 +01:00
Sasha Hilton
bd59ded224
Merge pull request #124 from awiouy/lewton_as_default
Set lewton_decoder as default, libvorbis_decoder as optional. Wiki also updated.
2018-02-09 00:51:26 +01:00
Sasha Hilton
6e71260bbd
Merge pull request #123 from awiouy/lewton
No objections, so merging. lewton: handle OggError(NoCapturePatternFound)
2018-02-08 18:33:45 +01:00
Sasha Hilton
682df767a6
Merge pull request #131 from librespot-org/modularise
Move discovery functionality into new crate.
2018-02-08 09:30:50 +01:00
awiouy
e3516ebd9b Move discovery to its own module. 2018-02-08 04:03:53 +01:00
awiouy
f400a894bc lewton_decoder becomes default, libvorbis_decoder optional 2018-02-08 00:24:57 +01:00
awiouy
97bc429e08 Update Rust requirement to 1.20.0 2018-02-07 18:57:19 +01:00
awiouy
99e7da562d lewton: handle OggError(NoCapturePatternFound) 2018-02-07 18:25:21 +01:00
Sasha Hilton
7ead896ae7
Merge pull request #122 from librespot-org/keymaster
Move keymaster to core
2018-02-07 17:50:45 +01:00
Sasha Hilton
53fab4dc86
Merge pull request #11 from thekr1s/alsa-open-crash
Prevent crash in audio_backend/alsa.rs when switching from Kodi audio…
2018-02-07 15:08:52 +01:00
Sasha Hilton
cfa7a62dfc Re-add serde_derive to lib.rs 2018-02-07 15:07:01 +01:00
Sasha Hilton
ccbaff267e Re-add serde_derive 2018-02-06 20:26:37 +01:00