diff options
| author | Eskil Q <eskilq@kth.se> | 2020-12-27 22:45:56 +0100 |
|---|---|---|
| committer | Eskil Q <eskilq@kth.se> | 2020-12-27 22:45:56 +0100 |
| commit | 4613c6b269d7842645d050bb3482cf7efcfa1946 (patch) | |
| tree | 1aa9bdb912e5d548eab9741a76b93bedeb1a4853 /mumd/src/audio.rs | |
| parent | f063ae0abc37952d718be961309a53c88ad2e0e0 (diff) | |
| parent | 6b7de396fd8681f1f55c786225fe7aebfccaf842 (diff) | |
| download | mum-4613c6b269d7842645d050bb3482cf7efcfa1946.tar.gz | |
Merge branch 'tokio-1.0' into main
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 8f9e2ab..0666268 100644 --- a/mumd/src/audio.rs +++ b/mumd/src/audio.rs @@ -312,11 +312,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) { |
