Commit graph

443 commits

Author SHA1 Message Date
Nick Steel
b9b8e110df 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_queue()'.

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-06 22:54:22 +00:00
Sasha Hilton
977a6db3ef
Merge pull request #116 from librespot-org/jackaudio
Jackaudio Support. Closes #93.
2018-02-04 20:23:16 +01:00
Sasha Hilton
59782fe285
Merge pull request #117 from awiouy/nit1
simplify dns-sd/mdns code
2018-02-04 20:10:09 +01:00
awiouy
2ae1f1399f simplify dns-sd/mdns code 2018-02-02 19:53:08 +01:00
Sasha Hilton
b22f252abd
Add missing " 2018-02-02 05:14:00 +01:00
Sasha Hilton
407e23b311
Merge branch 'master' into jackaudio 2018-02-02 05:12:36 +01:00
Sasha Hilton
f35f52cbf9 Remove redundant code 2018-02-02 05:03:59 +01:00
Sasha Hilton
932441db45
Merge pull request #112 from librespot-org/feature_dns
Feature flag for selecting dns service
2018-01-31 21:51:59 +01:00
Sasha Hilton
7a58e6d561 fix addr in wrong place 2018-01-31 12:08:23 +01:00
Sasha Hilton
d923f3bad3 Add with-dns-sd feature flag 2018-01-31 12:00:53 +01:00
Colm
8be642de31
Merge pull request #110 from librespot-org/inital-volume-ifelse-cleanup
Initial volume ifelse cleanup
2018-01-30 23:38:36 +00:00
Sasha Hilton
fddcbbcd82 Tidied up Syntax 2018-01-31 00:05:54 +01:00
Sasha Hilton
3efe499737
Merge pull request #109 from librespot-org/zeroconf_port
Add zeroconf-port option
2018-01-30 23:19:29 +01:00
ComlOnline
618eceb740 lost iv - due to previous 2018-01-30 21:46:57 +00:00
ComlOnline
46de5a704b Thats what I get for copypasta 2018-01-30 21:30:37 +00:00
ComlOnline
863ea9c976 removed and optimised 2018-01-30 20:52:25 +00:00
Sasha Hilton
8e8bab03d5 Add zeroconf-port option 2018-01-30 21:38:54 +01:00
Sasha Hilton
bc7ceb3f65
Update To-Do 2018-01-30 17:42:32 +01:00
Sasha Hilton
91647ab2dd
Merge pull request #10 from thekr1s/progressive-voume-control
Change volume control to implement logarithmic scaling.
2018-01-30 17:38:40 +01:00
Robert
871ab2b371 Merge branch 'progressive-voume-control' of https://github.com/thekr1s/librespot into progressive-voume-control 2018-01-29 23:49:31 +01:00
Robert
0b491b82aa Merge branch 'progressive-voume-control' of https://github.com/thekr1s/librespot into progressive-voume-control 2018-01-29 23:48:33 +01:00
Robert
f0061a22ce Merge branch 'progressive-voume-control' of https://github.com/thekr1s/librespot into progressive-voume-control 2018-01-29 23:41:48 +01:00
Robert
bec6b8c512 Changed volume control after discussion: https://github.com/librespot-org/librespot/pull/10
implement exponential volume control only
2018-01-29 23:39:55 +01:00
Sasha Hilton
5f21c25828
[ci skip] Fix formatting 2018-01-28 19:43:34 +01:00
Sasha Hilton
1e5aba20aa
Merge pull request #14 from librespot-org/sashahilton00-patch-1
[ci skip] Proposed update to Readme.
2018-01-28 19:40:50 +01:00
Sasha Hilton
43b5e02260
Add Gitter Badge 2018-01-28 19:02:32 +01:00
Sasha Hilton
e0d31bc972
Add Travis notifications to Gitter. 2018-01-28 18:53:24 +01:00
Sasha Hilton
ad7162530c
Fix formatting, add detail to metadata request. 2018-01-28 18:16:44 +01:00
Colm
a855fe62af
Added metadata feature request and added link to logarithmic volume 2018-01-28 16:57:05 +00:00
Sasha Hilton
b495f57676
Proposed update to Readme.
This is just a simple update to the readme to reflect this repo's intention as the replacement repo for plietar/librespot, and adds a to-do list for feature requests/problems that need resolving.
2018-01-28 17:51:00 +01:00
Colm
a82af966b4
Merge pull request #12 from ComlOnline/ReadMe-Changes
Read me changes
2018-01-27 00:48:32 +00:00
Colm
1358fc7995
Typo 2018-01-26 21:44:57 +00:00
Colm
e104c2d44b
Merge branch 'master' into ReadMe-Changes 2018-01-26 21:35:34 +00:00
Colm
08959c23c4
Update README.md 2018-01-26 21:29:24 +00:00
Colm
364f912885
Update README.md 2018-01-26 21:21:36 +00:00
Colm
0105c53af4
Merge pull request #9 from brain0/fix_deprecated
Update dependencies and fix the use of deprecated functionality
2018-01-26 21:17:53 +00:00
thekr1s
de7d341faa update README.md 2018-01-26 01:17:31 +01:00
Robert
f5b70c4cb6 update README.md 2018-01-26 01:15:34 +01:00
Robert
67adb06859 update README.md 2018-01-26 01:10:52 +01:00
Robert
4870acd572 Add --progressive-volume option. Increase volume slowly at low level, faster at higher level 2018-01-25 23:37:28 +01:00
Thomas Bächler
6b8a21db9f Increase required Rust version to 1.18.0. 2018-01-25 23:23:45 +01:00
Thomas Bächler
2465b0f57f Refactor the discovery module to remove usage of deprecated functions 2018-01-25 23:23:45 +01:00
Thomas Bächler
d36017d6f0 Remove usage of deprecated tokio_core::io 2018-01-25 23:23:45 +01:00
Thomas Bächler
630de8c0a9 Use futures::sync::mpsc::UnboundedSender::unbounded_send() instead of the deprecated send() 2018-01-25 23:23:45 +01:00
Thomas Bächler
5237203899 Remove usage of deprecated BoxFuture, BoxStream and BoxSink 2018-01-25 23:23:45 +01:00
Thomas Bächler
0bdf9aa080 Update all dependencies 2018-01-25 23:23:45 +01:00
Thomas Bächler
644355269e Use futures::sync::oneshot::Sender::send() instead of the deprecated complete() 2018-01-25 23:23:45 +01:00
Colm
f966440f98
Updated links and Travis badge 2018-01-25 01:34:56 +00:00
Colm
b819f632cf
Update README.md 2018-01-23 19:32:29 +00:00
Colm
977664f5fe
Update README.md 2018-01-23 19:31:49 +00:00