-
Notifications
You must be signed in to change notification settings - Fork 21
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
Any Chance of Having ogg.js Encode Audio? #2
Comments
Are there errors compiling or is does it compile without errors, but it's just missing the encoding functions? Sounds like the latter. Emscripten strips out functions that aren't used, so you have to explicitly tell it what functions to include. In my compile script for vorbis, I set There are two ways to go about what you want to do. The first is to extend the wrapper to include a So to summarize, I suggest you write a |
That's what I did, but it didn't work. In fact, your solution would have only solved the fact that Emscripten can't figure out which subroutine to access when the JavaScript consumer of the API requests it. My error is different. The compiler only had the declaration (i.e. the function prototype in the However, I did find a solution. I had to tell the compiler which But I'm now left with another error. I'm not sure if it's the compiler that isn't able to link the right code, or is it my bad coding skills. The only thing left for me to do, is take baby steps. For this one project of mine, I was too ambitious, to a point where I have no clue what errors are coming from where. So anyways, I'm closing this issue, but don't think for a second that I am not interested in figuring out how to encode audio. Especially, if you are also very enthusiastic about finding a solution, then I encourage you to keep posting in this thread. I just wanted to have a public space to discuss about a potential solution for an audio encoder. GitHub issues seem to be ideal, regardless of the status of a thread (be it open or closed). Anyways, thanks for your response. |
I've been trying, and trying and trying. But I have not been able to write an encoder using libvorbis. I'm specifically interested in libvorbis, because it has the potential to be encoded onto WebM. There is already an image-array-to-WebM encoder, but there is a missing piece to the puzzle: a Vorbis encoder.
So, my issue is, I can't get the code to compile properly. Your code compiles, but the part of libvorbis required to encode audio doesn't seem to get linked, and hence, I get issues of missing function errors. I have pretty much given up, not because I can't encode, but because I have compiler/linker errors.
I was hoping that maybe you might be able to help me out a little.
The text was updated successfully, but these errors were encountered: