Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset audio context noAudio to false when unload #617

Merged
merged 2 commits into from
Oct 14, 2016
Merged

reset audio context noAudio to false when unload #617

merged 2 commits into from
Oct 14, 2016

Conversation

huozhi
Copy link

@huozhi huozhi commented Sep 8, 2016

Our case is using multiple audios on web page.
I unload a Howl object when the audio load failed. I found that noAudio not reset when unload method invoked. So I set global Howler.noAudioto false, otherwise others created audio object cannot play.

@@ -1441,6 +1441,9 @@
delete cache[self._src];
}

// Clear global errors
Howler.noAudio = false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just needs a semicolon on the end of this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added now. you may squash the two commits.

garethwhittaker pushed a commit to tombolaltd/howler.js that referenced this pull request Sep 27, 2016
@garethwhittaker
Copy link
Contributor

I'm also unloading the Howl instance on a failed load, subsequently leading to the same issue: "No audio support."

This fix works for me.

@goldfire goldfire merged commit 46dc669 into goldfire:master Oct 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants