Commit graph

864 commits

Author SHA1 Message Date
ashthespy
96b432aa4c Implement support for dynamic playlists (Radio) 2018-10-12 19:15:26 +02:00
ashthespy
c5fcdfd43c Upgrade protobuf to 2.0 and use protoc-rust to compile proto files 2018-10-03 15:06:44 +02:00
ashthespy
37c588d6a1 Set proper name for kUnknown enum 2018-09-26 17:11:32 +02:00
Gianlu
be6910f720
Added librespot-java to related projects 2018-09-17 15:00:30 +02:00
Colm
a4e0f582a8
Merge pull request #237 from romerod/master
Docker file to create an RPI image
2018-08-17 13:30:12 +01:00
Sasha Hilton
ee87904ac1
Merge pull request #236 from haroldmrt/master
Add option to specify preferred AP port
2018-08-06 20:44:27 +01:00
newpavlov
2ae5589318 bump min Rust version to 1.27 2018-07-30 14:24:25 +03:00
newpavlov
1f1cd116e7 aes-ctr 2018-07-30 14:18:43 +03:00
newpavlov
e4677027d2 replace rust-crypto's hashes, HMAC and PBKDF2 2018-07-23 16:41:39 +03:00
Daniel Romero
4f8ea66207 Add Dockerfile.Rpi which creates a librespot docker image which can be used on the RPI directly. 2018-07-13 10:21:31 +02:00
Daniel Romero
861515e208 Add contrib to .dockerignore for the docker cache to work, when modifying the docker files 2018-07-13 10:21:31 +02:00
Harold
4fb3d5f271 Add ap-port option to specify preferred port 2018-07-03 13:09:22 +02:00
Harold
00e89343fb Formatting 2018-07-03 13:08:42 +02:00
Harold
f61bbd87a8 Change documentation to reflect code behavior 2018-07-03 13:07:29 +02:00
Dawid Dziurla
431be9e847 Add kUnknown enum (#224) 2018-05-18 01:20:41 +02:00
Brice
d40c0f50db Cache volume across restarts (#220)
* create Volume struct for use with Cache

* add "volume" file to Cache

* load cached volume on start, intial overrides cached overrides default

* amend volume_to_mixer function to cache the volume on every change

* pass cache to Spirc and SpircTask so volume_to_mixer has access

* rustfmt changes

* revert volume_to_mixer function and Spirc/SpircTask cache variable

* Volume implements Copy, pass by value instead of reference

* clamp volume to 100 if cached value exceeds limit

* convert Volume to u16 internally, use float and round to convert hex->dec

* convert initial_volume and ConnectConfig.volume to u16 as well

* add cache_volume function to SpircTask

* remove conversion to/from percentage on cached volume

* consolidate device.set_volume, mixer.set_volume, and caching

* streamline intial volume logic
2018-05-17 03:15:17 +02:00
StopMotionCuber
21f1ccfb5a Fixed Jackaudio compiling (#222) 2018-05-15 20:33:58 +02:00
Reinier Balt
deb240c02f reverse #212 since it does not address the real problem (#213) 2018-05-01 21:39:49 +02:00
Sasha Hilton
817dff06bf
Merge pull request #211 from lrbalt/remove-warning
remove deprecated and unused import
2018-04-30 16:48:49 +02:00
Sasha Hilton
b86ffa9e7c Update Cargo versions 2018-04-30 16:12:13 +02:00
Sasha Hilton
92835af007
Merge pull request #212 from lrbalt/shutdown
return from Main loop on Ctrl-C/shutdown
2018-04-30 15:46:12 +02:00
Reinier Balt
870afdb4b6 fix deprecation warning for bytes 2018-04-30 14:28:43 +02:00
Reinier Balt
6a4e9e8bec return from Main loop on Ctrl-C/shutdown 2018-04-30 14:22:45 +02:00
Reinier Balt
e6fff8003f remove deprecated and unused import 2018-04-26 09:15:01 +02:00
Sasha Hilton
59cff3d4c5
Merge pull request #202 from kbrah/master
Fixes player initialization in the play.rs
2018-04-25 20:16:46 +02:00
Sasha Hilton
d76d9725e0
Remove rust fmt from Travis
From #208 rust fmt has been removed as it is still somewhat unstable.
2018-04-25 20:15:32 +02:00
Sasha Hilton
ffb7714cb4
Merge pull request #206 from lrbalt/master
Do not panic on connection reset
2018-04-25 20:11:51 +02:00
Reinier Balt
ab70e6ec40 run rustfmt --all 2018-04-25 19:29:50 +02:00
Reinier Balt
2aea0e8fe6 do not panic on connection reset 2018-04-21 17:46:29 +02:00
Lasse Linkola
4caf2b88f2 formatting 2018-04-16 19:11:27 +03:00
Lasse Linkola
d62b72f24d fixed example play.rs initalizing player 2018-04-16 19:04:31 +03:00
Colm
03de235d2f
Merge pull request #198 from librespot-org/500_error
Add 5xx error panic
2018-04-12 20:52:47 +01:00
Sasha Hilton
96124c5e18 Add 5xx error panic 2018-04-06 02:44:06 +02:00
Sasha Hilton
8995f7609f
Merge pull request #191 from Fulkerson/master
Add support for HTTP proxy
2018-04-06 01:25:46 +01:00
Johan Anderholm
96a6978016 Update Cargo.lock
librespot now require rust 1.21.0. error_chain is updated to avoid
compilation warnings about unused rustdoc.
2018-03-24 08:45:43 +00:00
Johan Anderholm
3a14e9a6be Validate proxy urls better.
Use the url crate to handle proxies to make sure they conform to a
proper format.
2018-03-24 08:45:43 +00:00
Johan Anderholm
1a04e3b899 Resolve AP through proxy as well 2018-03-24 08:45:43 +00:00
Johan Anderholm
3bdc5e0073 Add support for http proxy
Currently only http proxy (no https) is supported.
2018-03-24 08:45:43 +00:00
Johan Anderholm
612978908f Reformat according to new rustfmt rules 2018-03-24 08:45:43 +00:00
Sasha Hilton
cb61e222d7
Merge pull request #194 from brain0/fix_pulseaudio
Fix pulseaudio playback with Lewton
2018-03-23 23:48:30 +01:00
Thomas Bächler
0c18aa51ad playback: pulseaudio: Panic in write if data is empty 2018-03-20 14:14:44 +01:00
Thomas Bächler
014533a583 playback: Only send a packet to the audio backend if it isn't empty
The lewton decoder sometimes delivers empty packets, especially after skipping inside a
track or switching tracks. This caused the pulseaudio backend to fail since it expects
a non-empty packet. There is no need to handle empty packets in the audio backend, so
we can skip them entirely.
2018-03-20 14:14:44 +01:00
Sasha Hilton
e92bb451b5
[ci skip] Add related projects note to bottom of readme 2018-03-18 21:33:01 +01:00
Sasha Hilton
0f80d80205
[ci skip] Update links and documentation. 2018-03-16 04:13:12 +01:00
Sasha Hilton
085f76162f
Merge pull request #188 from thekr1s/linear-volume-control
Add optional linear volume contol
2018-03-15 23:43:44 +01:00
thekr1s
d6b82cd732 revert file mode to original mode 2018-03-14 23:19:49 +01:00
thekr1s
b1f2a412ad fir rustfmt issues 2018-03-11 13:34:30 +01:00
Colm
9d9c3117ed
Merge pull request #184 from ashthespy/armv6hf
Add a armv6hf crossbuild target
2018-03-11 11:14:18 +00:00
thekr1s
b3966b0e08 Add optional linear volume contol 2018-03-11 11:27:28 +01:00
ashthespy
24cd9aa581 Add a armv6hf crossbuild target
Tweak `armv6hf` crossbuild script

Fix example typo in Dockerfile

Changed File permissions
2018-03-10 19:10:34 +01:00