mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Set volume control default to log, clean up stray debugs
This commit is contained in:
parent
f0b3b2c7e8
commit
99be49acd2
2 changed files with 2 additions and 5 deletions
|
@ -235,10 +235,7 @@ fn calc_logarithmic_volume(volume: u16) -> u16 {
|
|||
|
||||
fn volume_to_mixer(volume: u16, volume_ctrl: &VolumeCtrl) -> u16 {
|
||||
match volume_ctrl {
|
||||
VolumeCtrl::Linear => {
|
||||
debug!("linear volume: {}", volume);
|
||||
volume
|
||||
}
|
||||
VolumeCtrl::Linear => volume,
|
||||
VolumeCtrl::Log => calc_logarithmic_volume(volume),
|
||||
VolumeCtrl::Fixed => volume,
|
||||
}
|
||||
|
|
|
@ -110,6 +110,6 @@ impl FromStr for VolumeCtrl {
|
|||
|
||||
impl Default for VolumeCtrl {
|
||||
fn default() -> VolumeCtrl {
|
||||
VolumeCtrl::Linear
|
||||
VolumeCtrl::Log
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue