Skip to content

Audio is distorted after the audioContext is unmuted #7

@hongkheng

Description

@hongkheng

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions