free-librespot/core/src
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
..
connection fix deprecation warning for bytes 2018-04-30 14:28:43 +02:00
mercury Add 5xx error panic 2018-04-06 02:44:06 +02:00
util Add to_base62 method 2018-02-28 13:28:57 +01:00
apresolve.rs Validate proxy urls better. 2018-03-24 08:45:43 +00:00
audio_key.rs Reformat according to new rustfmt rules 2018-03-24 08:45:43 +00:00
authentication.rs Reformat according to new rustfmt rules 2018-03-24 08:45:43 +00:00
cache.rs Cache volume across restarts (#220) 2018-05-17 03:15:17 +02:00
channel.rs Reformat according to new rustfmt rules 2018-03-24 08:45:43 +00:00
component.rs core API: component.new() 2018-02-13 08:18:49 +01:00
config.rs Cache volume across restarts (#220) 2018-05-17 03:15:17 +02:00
diffie_hellman.rs Reformat according to new rustfmt rules 2018-03-24 08:45:43 +00:00
keymaster.rs rustfmt: core 2018-02-11 12:37:08 +01:00
lib.rs Cache volume across restarts (#220) 2018-05-17 03:15:17 +02:00
proxytunnel.rs Validate proxy urls better. 2018-03-24 08:45:43 +00:00
session.rs do not panic on connection reset 2018-04-21 17:46:29 +02:00
spotify_id.rs remove deprecated and unused import 2018-04-26 09:15:01 +02:00
version.rs Create new librespot-core crate 2017-08-03 19:58:44 +01:00
volume.rs Cache volume across restarts (#220) 2018-05-17 03:15:17 +02:00