diff options
| author | Rubens Brandao <git@rubens.io> | 2021-04-10 12:59:29 +0200 |
|---|---|---|
| committer | Rubens Brandao <git@rubens.io> | 2021-04-10 12:59:29 +0200 |
| commit | 3caae1e9e17524cd2fdedc39c075ceda231cf0e1 (patch) | |
| tree | 9b08fb9e64bcfc36dcdd274bdf307c4dfcf94722 /mumd/src/audio/output.rs | |
| parent | ab649ca21286baf182c18d11450bf58d25af0c84 (diff) | |
| download | mum-3caae1e9e17524cd2fdedc39c075ceda231cf0e1.tar.gz | |
Fix audio output being cut
Where did this `!` go? My keyboard have a problem?
Diffstat (limited to 'mumd/src/audio/output.rs')
| -rw-r--r-- | mumd/src/audio/output.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mumd/src/audio/output.rs b/mumd/src/audio/output.rs index 3664be8..df9b2e2 100644 --- a/mumd/src/audio/output.rs +++ b/mumd/src/audio/output.rs @@ -62,7 +62,7 @@ impl ClientStream { let iter = self.buffer.iter_mut(); consumer(iter); //remove empty Vec - self.buffer.retain(|_, v| v.is_empty()); + self.buffer.retain(|_, v| !v.is_empty()); } pub fn extend(&mut self, key: ClientStreamKey, values: &[f32]) { |
