File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ impl AudioProcessor for AudioBufferSourceRenderer {
655655 if !self . render_state . started {
656656 let delta = current_time - self . start_time ;
657657 // handle that start time may be between last sample and this one
658- self . offset += delta;
658+ self . offset += delta * computed_playback_rate ;
659659
660660 if is_looping && computed_playback_rate >= 0. && self . offset >= actual_loop_end
661661 {
@@ -667,7 +667,7 @@ impl AudioProcessor for AudioBufferSourceRenderer {
667667 self . offset = actual_loop_start;
668668 }
669669
670- buffer_time = self . offset * computed_playback_rate ;
670+ buffer_time = self . offset ;
671671 self . render_state . buffer_time_elapsed = delta * computed_playback_rate;
672672 self . render_state . started = true ;
673673 }
You can’t perform that action at this time.
0 commit comments