Skip to content

Howler state is still 'running' while AudioContext state is 'suspended' #1355

@EnzoMenegaldo

Description

@EnzoMenegaldo

Hi there !

It seems that when you manually suspend audioContext using its native method: 'suspend()', the Howler state is still 'running'.
Thus when we try to play it again, it doesn't work.

https://jsfiddle.net/ykczmoux/15/

After a while, Howler state will be set to 'suspended'. As so, it will work again. I don't know why.

On iOs, when you unplug headphones, its policy will suspend any audioContext. But here, our Howler state will remain 'running'. Therefore, you cannot play any sound while Howler state is still running.

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions