Sonoport / soundmodels

Sound Models for creating dynamic interactive sounds.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Audio is distorted after the audioContext is unmuted

hongkheng opened this issue · comments

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.