diff options
| author | Eskil Q <eskilq@kth.se> | 2020-12-25 15:24:19 +0100 |
|---|---|---|
| committer | Eskil Q <eskilq@kth.se> | 2020-12-25 15:24:19 +0100 |
| commit | 48ce14064d355ad0ed89e59b1d4b10256c85be6a (patch) | |
| tree | 20a1d9010d424010e78173c76ca73e648be6113d /mumd/src/audio.rs | |
| parent | 58947a7a3acaa1ae04887723643a49db76479f00 (diff) | |
| download | mum-48ce14064d355ad0ed89e59b1d4b10256c85be6a.tar.gz | |
initial tokio 1.0 commit
Diffstat (limited to 'mumd/src/audio.rs')
| -rw-r--r-- | mumd/src/audio.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs index 812bb4c..9e8bd6e 100644 --- a/mumd/src/audio.rs +++ b/mumd/src/audio.rs @@ -305,11 +305,11 @@ impl Audio { } pub fn set_input_volume(&self, input_volume: f32) { - self.input_volume_sender.broadcast(input_volume).unwrap(); + self.input_volume_sender.send(input_volume).unwrap(); } pub fn set_output_volume(&self, output_volume: f32) { - self.output_volume_sender.broadcast(output_volume).unwrap(); + self.output_volume_sender.send(output_volume).unwrap(); } pub fn set_user_volume(&self, id: u32, volume: f32) { |
