Hardware support for audio decoding

2,051 views
Skip to first unread message

Steven Merel

unread,
Jul 7, 2011, 1:14:41 PM7/7/11
to andro...@googlegroups.com
Hi,

My understanding is that currently, OpenSL ES doesn't allow decoding of compressed audio (e.g. MP3, Ogg Vorbis, etc) to memory, so if I'd like to do something with the audio in a compressed file, I need to decode it myself with my own software decoder.  Now, in theory, OpenSL could be using hardware acceleration on the device for decoding audio, which means that doing the decoding in software would be much slower.  In practice, though, does anyone know how common such hardware is, and for which audio formats?  Is there any way to find out from the NDK or SDK whether a given device has a hardware decoder for a particular audio format?

(I understand there are licensing issues with decoding MP3 files in particular, which I don't want to get into here... just interested in the technical info.)

thanks
-steve

mic _

unread,
Jul 7, 2011, 2:16:21 PM7/7/11
to andro...@googlegroups.com
I remember that we were using some h/w-accelerated codecs on an Èclair-based product. For MP3 and AAC and possibly some other formats. There were some stability issues with those codecs though, so in the end we might've used all-s/w codecs.. I can't recall exactly since it's been about a year since that project.

Anyway, I don't think you should be too worried about using s/w codecs. I'd expect something like libMAD to give you adequate performance.

/Michael

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/6NIT9sHKLF8J.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Glenn Kasten

unread,
Jul 8, 2011, 10:03:51 AM7/8/11
to android-ndk
Reply all
Reply to author
Forward
0 new messages