Hardware accelerated audio decoding with OpenAL

Can I use hardware accelerated decoding of MP3 and AAC when using the OpenAL library?

I believe there are two possible approaches, if possible.
Specific OpenAL extensions for iPhone.
IPhone API for decoding audio into raw bytes.

I have two specific use cases.

  • Fully decode a short sound clip.
  • Decode a larger audio file piece by piece so that it can be transferred to OpenAL, rather than loaded right away.

Update

Boy! nobody received an answer to this? Are Apple NDAs these problems? What's happening? Of course, someone else using OpenAL wanted to improve the sound quality.

+6
c ++ objective-c iphone codec openal
source share
2 answers

All iPhone device models have at least one hardware (or hardware) decoder. It may be available to convert MP3 and AAC files to raw PCM bytes using the audio queue services APIs. From there, you can process these bytes or send them to OpenAL.

+6
source share

AFAIK, there is no hardware audio decoder in iPhone, 3S and 3GS. Perhaps this has changed in the iPhone 4, but I have not heard anything to believe it.

-one
source share

All Articles