Skip to content

Commit 0f12973

Browse files
committed
Delete inconsistent variable binding
1 parent 0e147b9 commit 0f12973

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/node/audio_buffer_source.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,6 @@ impl AudioProcessor for AudioBufferSourceRenderer {
537537
|| self.render_state.buffer_time + block_duration > self.duration
538538
|| current_time + block_duration > self.stop_time
539539
{
540-
let buffer_time = self.render_state.buffer_time;
541540
let end_index = if current_time + block_duration > self.stop_time
542541
|| self.render_state.buffer_time + block_duration > self.duration
543542
{
@@ -560,7 +559,7 @@ impl AudioProcessor for AudioBufferSourceRenderer {
560559
.for_each(|(buffer_channel, output_channel)| {
561560
// we need to recompute that for each channel
562561
let buffer_channel = buffer_channel.as_slice();
563-
let mut start_index = (buffer_time * sample_rate).round() as usize;
562+
let mut start_index = (self.render_state.buffer_time * sample_rate).round() as usize;
564563
let mut offset = 0;
565564

566565
for (index, o) in output_channel.iter_mut().enumerate() {

0 commit comments

Comments
 (0)