Package Exports
- pcm-ringbuf-player
- pcm-ringbuf-player/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pcm-ringbuf-player) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pcm-ringbuf-player
A simple library that allows playing PCM Audio in the browser leveraging a ring buffer for efficient transport of data between the main thread and the audio thread.
To Do
- Tests
- Support Other TypedArrays
- Documentation
- Support 16 bit signed integer arrays
Contributing
Happy for contributions - simply open a PR.
Compatibility
This library uses SharedArrayBuffer under the hood, to enable it in the browser, the server serving the page needs to set the following headers
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corpFor more information and browser compatibiltiy see this Mozilla developer doc