Skip to content

Commit 7fcb3bf

Browse files
committed
ConstantSourceNode, apply more fast path
#470 (comment)
1 parent de445a1 commit 7fcb3bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/constant_source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl AudioProcessor for ConstantSourceRenderer {
205205
// fast path
206206
if offset.len() == 1
207207
&& self.start_time <= scope.current_time
208-
&& self.stop_time > next_block_time
208+
&& self.stop_time >= next_block_time
209209
{
210210
output_channel.fill(offset[0]);
211211
} else {

0 commit comments

Comments
 (0)