Description
The position jumps around depending on the current playback rate when unpausing.
Expected Behavior
Hitting play after pause should continue from where it was paused.
Steps to Reproduce
- Load any song
- Click ~half way through the song in the waveform viewer
- Increase the playback rate
- Play -> pause -> play -> pause -> play -> pause
- Observe that the current position jumps backwards
Alternatively, decrease the playback rate and observe that the current position jumps forwards (assuming there's enough song left)
Environment
- App Version: 0.5.0
- Device: Desktop
- OS: Linux
- Browser: Firefox
Additional Context
My guess is that it's this division (or lack of a corresponding division in pause()) that's causing the issue since the jump is proportional to the playback rate:
|
this.startTime = this.context.currentTime - actualOffset / this.playbackRate; |
Description
The position jumps around depending on the current playback rate when unpausing.
Expected Behavior
Hitting play after pause should continue from where it was paused.
Steps to Reproduce
Alternatively, decrease the playback rate and observe that the current position jumps forwards (assuming there's enough song left)
Environment
Additional Context
My guess is that it's this division (or lack of a corresponding division in
pause()) that's causing the issue since the jump is proportional to the playback rate:beatmapper/src/services/audio.service.ts
Line 98 in c55892c