How can I get Vorbis libraries on Android?

Well, I spent most of the day trying to do this, and I believe that I need to miss something pretty obvious.

Vorbis files are apparently supported on the Android SDK . Is there a way to access these libraries as a developer.

Situation: I have a project that uses libvorbis and libogg libraries to load an ogg file. It all compiles and works fine on OSX, Linux, iOS, etc., and I tried to port it to Android.

Using the NDK to compile the project, I get the error: fatal error: vorbis/codec.h: No such file or directory compilation terminated. (I assume that he will continue to say that he cannot find vorbisfile.h)

Question 1: Can I access the vorbis API in C on Android? Or is there really any Vorbis API?

Without much effort, I came across Tremor and Tremolo - ARM vorbis libraries, but I can not find any information on how to compile them using the Android SDK.

Question 2: Can anyone help with this?

Let me know if I can provide any other information to help.

+4
source share
2 answers

As an example, you can look at the android / ffmpeg / x264 project . x264 is not ogg / vorbis, but it is a prime example of linking ffmpeg with additional libraries in the build and connection script android.

Note: it will take quite a while to work.

If you understand the build example with x264, then you should be able to exchange in obb / vorbis libs instead of x264 and get everything to reference the android assembly.

This assumes that you are good at dealing with NDK and cross-toolchains and with git projects and submodules (x264, ogg, vorbis)

+3
source

Perhaps you can use vorbis-java-1.0.0-beta from Xiph.org, this is a Java package, you can port it to Android.

-1
source

All Articles