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

Support OGG on JS, fall back to stb #1152

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

MSGhero
Copy link
Contributor

@MSGhero MSGhero commented Jun 9, 2023

Officially support Ogg audio files on JS. stb_ogg_sound is required still (OGGs are ignored otherwise), but it attempts native browser handling of the file before falling back to stb_ogg_sound.

This preserves the ability to use stb_ogg_sound outside of HL or JS, but I did not test that.

@MSGhero MSGhero marked this pull request as ready for review June 12, 2023 03:50
@MSGhero
Copy link
Contributor Author

MSGhero commented Jun 12, 2023

Narrowed the scope to just native browser handling when possible, so ignoring OGGs is the same behavior as before

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.

1 participant