Audio is distorted after the audioContext is unmuted
hongkheng opened this issue · comments
HongKheng Yap commented
When the AudioContext.currentTime
starts to run (unmuted) via the touchend
event, the audio is distorted.
After some investigation, AudioBuffer source length is of a different value when it is loaded during AudioContext is muted than it is unmuted.
A fix is to reset the buffer source again after the user has unmuted the AudioContext. I am wondering if this fix can be added into the soundmodels themselves rather than resetting again outside it.