Commit graph

23 commits

Author SHA1 Message Date
HEnquist
15e1422596 Some more cleaning 2019-09-22 21:45:17 +02:00
HEnquist
3d835f0149 Clean up playlist example 2019-09-22 21:45:08 +02:00
HEnquist
06b83fee6b Remove unused code from example 2019-09-22 21:45:08 +02:00
HEnquist
ba85875ec3 Use new hm endpoint for playlists 2019-09-22 21:45:08 +02:00
HEnquist
2c35069c4d Add basic support for playlists 2019-09-22 21:43:33 +02:00
HEnquist
e73d28d680 Some more cleaning 2019-09-22 21:38:23 +02:00
HEnquist
acf2b69d81 Clean up playlist example 2019-09-22 21:38:08 +02:00
HEnquist
7a9dfb242f Remove unused code from example 2019-09-22 21:38:08 +02:00
HEnquist
8c6f5b7c28 Use new hm endpoint for playlists 2019-09-22 21:38:08 +02:00
HEnquist
da171c05ba Add basic support for playlists 2019-09-22 21:34:49 +02:00
Nick Mavis
c19375c5ca Fixed nightly conflict with 2019-09-16 15:00:09 -04:00
Harold
00e89343fb Formatting 2018-07-03 13:08:42 +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
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
Johan Anderholm
612978908f Reformat according to new rustfmt rules 2018-03-24 08:45:43 +00:00
Sasha Hilton
237ef1e4f9 Format according to rustfmt 2018-02-26 02:50:41 +01:00
Sasha Hilton
4fb8c71b0a Set SpotifyId methods to return Result 2018-02-25 03:04:07 +01:00
akosel
3ce22113cf Fix example use declarations (#160) 2018-02-22 13:24:04 +01:00
awiouy
4c2b641cad core API: move spotify_id to lib.rs 2018-02-13 07:57:28 +01:00
awiouy
191caca518 core API: move Bitrate and PlayerConfig from core to playback 2018-02-11 23:55:41 +01:00
Paul Lietar
2846d3acfd Fix the play example 2017-08-03 20:11:30 +01:00
Paul Lietar
294a7821d6 Add simple playback example. 2017-04-28 23:24:55 +01:00