1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-04 10:19:27 +02:00

Removed volume struct

This commit is contained in:
johannesd3 2021-01-25 10:52:06 +01:00
parent fa5c9f7d11
commit fd1f049572
5 changed files with 4 additions and 41 deletions

View file

@ -292,9 +292,8 @@ fn setup(args: &[String]) -> Setup {
}
(volume as i32 * 0xFFFF / 100) as u16
})
.map(Volume)
.or_else(|| cache.as_ref().and_then(Cache::volume))
.unwrap_or(Volume(0x8000));
.unwrap_or(0x8000);
let zeroconf_port = matches
.opt_str("zeroconf-port")