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:
parent
fa5c9f7d11
commit
fd1f049572
5 changed files with 4 additions and 41 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue