-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soundsensers: add patch for loading of default volumes (fix by laurig…
…ates: prixt/soundsense-rs#13)
- Loading branch information
McArcady
committed
Nov 1, 2021
1 parent
afab250
commit e3a0bab
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
patches/soundsense-rs/master/300-fix-loading-total-volume.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- a/src/sound/sound_manager.rs 2021-08-10 03:37:44.000000000 +0200 | ||
+++ b/src/sound/sound_manager.rs 2021-11-01 23:33:07.702275420 +0100 | ||
@@ -655,7 +655,7 @@ | ||
/// 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)?; | ||
} | ||
@@ -747,4 +747,4 @@ | ||
} | ||
} | ||
Ok(path_vec) | ||
-} | ||
\ No newline at end of file | ||
+} |