Skip to content

Conversation

@rdw-software
Copy link
Contributor

Required for #130, but should likely be split off (if only to make that PR easier to review).

While it's a breaking change, it is needed to easily support multiple audio formats using the C_Resources cache.
While this doesn't do anything of significance, it allows the WebAudio API to load audio files from disk using the C_Decoding API, which means they'll be provided as cached resources.

The alternative is to simply use BJS XHR-based loading, but that incurs a lot of overhead since it will load the file from disk every time. There's still overhead for copying buffers and decoding the ArrayBuffer to an AudioBuffer internally, but that'll require a more elaborate solution to eliminate.
@rdw-software rdw-software force-pushed the 54-builtin-audio-decoder branch from 1652365 to e10ba6b Compare November 17, 2021 17:01
@rdw-software rdw-software merged commit 91b3003 into main Nov 17, 2021
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.

2 participants