- changed status to resolved
mod_theora does not play sound in Android
Issue #10
resolved
mod_theora plays audio through OpenAL. This seems to be working great in windows/linux/OS X and in iOS but Android does not natively support it.
Compiling OpenAL in Android is cumbersome so a native OpenSL ES implementation would probably work better. The OpenSL ES API is -for our limited needs- somewhat similar to the OpenAL API, so it should not be too hard to implement.
A very simple OpenSL ES example can be found here.
Comments (1)
-
reporter - Log in to comment
Completely fixed in 31fc0a0.
The problem was that mod_theora was indirectly using libtremor in Android for OGG/Vorbis decoding. Tremor returns int32 audio, instead of float32, which is what I was expecting. Switching SDL_mixer to build libvorbis/libvorbisfile instead of libtremor (in ac57379) fixes the issue.