We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a365d4 commit 18b3137Copy full SHA for 18b3137
src/param.rs
@@ -1060,7 +1060,7 @@ impl AudioParamProcessor {
1060
1061
// fill buffer with current intrinsic value until `event.time`
1062
if infos.is_a_rate {
1063
- let end_index = ((time - infos.block_time).max(0.) / infos.dt) as usize;
+ let end_index = ((time - infos.block_time).max(0.) / infos.dt).round() as usize;
1064
let end_index_clipped = end_index.min(infos.count);
1065
1066
for _ in self.buffer.len()..end_index_clipped {
0 commit comments