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

Cannot build the wasm #27

Open
dy opened this issue Jan 26, 2023 · 3 comments
Open

Cannot build the wasm #27

dy opened this issue Jan 26, 2023 · 3 comments

Comments

@dy
Copy link

dy commented Jan 26, 2023

Emscripten of 1.* is unable to install (issue)

With emscripten later than 2.* it gives the following error:

wasm-ld: error: unable to find library -llibvorbisfile
wasm-ld: error: unable to find library -llibvorbis
wasm-ld: error: unable to find library -llibogg

Sorry I'm a noob in compiling with emscripten, just hoped to get actual decoder to use in web-worker, not audio-context wrapper

@skidnight
Copy link

Is there a reason you aren't able to use the published package?

Those linker flags should be changed to -lvorbisfile -lvorbis and -logg respectively. I tried this locally running on v3.1.2 and there are more issues once getting past that, if I have time later I'll try and fix it and submit a pull request.

@dy
Copy link
Author

dy commented Feb 2, 2023

You mean oggmented package? Yes, 2 reasons: first I need decoder in webworker, second I don't like wrapping native API just for one feature, it seems AudioContext ponyfill would be a better design for that problem.

Thanks for checking though!

Btw @eshaz recently released https://www.npmjs.com/package/@wasm-audio-decoders/ogg-vorbis, and it seems to be twice more compact and 20-30% faster than oggmented decoder.

@skidnight
Copy link

Thanks so much for that suggestion. I was literally in the middle of rolling my own because of issues I've had in this library and others but I will give that a go first so I don't re-invent the wheel haha

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

No branches or pull requests

2 participants