Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
subalterngames committed Aug 18, 2024
1 parent 917f424 commit 9b4fe6b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions audio/src/decayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ impl Decayer {
}

fn set_decaying(&mut self, len: usize) {
self.decaying = self.buffer[0..Self::get_len(len)].iter().any(|s| s.abs() > SILENCE);
self.decaying = self.buffer[0..Self::get_len(len)]
.iter()
.any(|s| s.abs() > SILENCE);
}

fn get_len(len: usize) -> usize {
if len <= DECAY_CHUNK_SIZE {
len
}
else {
} else {
DECAY_CHUNK_SIZE
}
}
Expand Down

0 comments on commit 9b4fe6b

Please sign in to comment.