Skip to content

Commit

Permalink
https://github.com/prixt/soundsense-rs/pull/13
Browse files Browse the repository at this point in the history
  • Loading branch information
Erquint authored Dec 17, 2022
1 parent f701020 commit 28c44e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sound/sound_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ impl SoundManager {
/// Write the current slider values into the soundsense-rs/default-volumes.ini file.
pub fn set_current_volumes_as_default(&self, mut file: File) -> Result<()> {
use std::io::Write;
writeln!(&mut file, "all={}", (self.total_volume.get()*100.0) as u32)?;
writeln!(&mut file, "total={}", (self.total_volume.get()*100.0) as u32)?;
for (channel_name, channel) in self.channels.iter() {
writeln!(&mut file, "{}={}", channel_name, (channel.get_local_volume()*100.0) as u32)?;
}
Expand Down Expand Up @@ -747,4 +747,4 @@ fn parse_playlist(path: &Path) -> Result<Vec<PathBuf>> {
}
}
Ok(path_vec)
}
}

0 comments on commit 28c44e4

Please sign in to comment.