Skip to content
New issue

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

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

Already on GitHub? # to your account

Plugin Architecture #18

Open
eshaz opened this issue Feb 20, 2022 · 0 comments
Open

Plugin Architecture #18

eshaz opened this issue Feb 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@eshaz
Copy link
Owner

eshaz commented Feb 20, 2022

This library would benefit from a more modular / plugin architecture so that the common code can be reused across decoders.

  • Tree shaking common code used across modules for smaller build size
  • Simpler code structure (less duplicated scaffolding code, easier to maintain)
  • Common interface for new audio decoders to implement

New library layout might look like:

  • @wasm-audio-decoders/decoder-api -> contains the shared scaffolding code for Web Worker / general decoding API.
  • @wasm-audio-decoders/mpeg
  • @wasm-audio-decoders/opus
  • @wasm-audio-decoders/ogg-opus
  • @wasm-audio-decoders/flac
  • @wasm-audio-decoders/ogg-flac
  • @wasm-audio-decoders/vorbis
  • @wasm-audio-decoders/ogg-vorbis
@eshaz eshaz added the enhancement New feature or request label Feb 20, 2022
@eshaz eshaz mentioned this issue Feb 24, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant