File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -537,7 +537,6 @@ impl AudioProcessor for AudioBufferSourceRenderer {
537
537
|| self . render_state . buffer_time + block_duration > self . duration
538
538
|| current_time + block_duration > self . stop_time
539
539
{
540
- let buffer_time = self . render_state . buffer_time ;
541
540
let end_index = if current_time + block_duration > self . stop_time
542
541
|| self . render_state . buffer_time + block_duration > self . duration
543
542
{
@@ -560,7 +559,7 @@ impl AudioProcessor for AudioBufferSourceRenderer {
560
559
. for_each ( |( buffer_channel, output_channel) | {
561
560
// we need to recompute that for each channel
562
561
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 ;
564
563
let mut offset = 0 ;
565
564
566
565
for ( index, o) in output_channel. iter_mut ( ) . enumerate ( ) {
You can’t perform that action at this time.
0 commit comments