Reverb from OpenAL to iOS

Is there any way to do reverb using OpenAL on iOS? Does anyone have any code snippets to achieve this effect? I know that it is not included in the OpenAL library for iOS, but I think there is still a way to program it.

Thanks.

+8
ios iphone openal
source share
2 answers

Reverb is now supported in OpenAL (starting with iOS 5.0). You can view an example implementation of the ObjectAL project:

https://github.com/kstenerud/ObjectAL-for-iPhone

Just take the last source from this repository, download "ObjectAL.xcodeproj" and run the ObjectALDemo target on any iOS 5.0 device (should also work on the simulator).

The actual implementation is in two places:

Look for the word β€œreverb” in these files (and the corresponding header files) to find the name of the OpenAL properties and constants used to set and control the reverb effect.

Good luck

+10
source share

You can use pre-processed sound if the situation allows it. If you want to do this in real time, look at the DSP. They cannot do this from the box that I know of.

Additional desktop APIs, such as EFX and EAX, use hardware-based signal processing. Perhaps in the future these handheld devices will implement the full OpenAL and OpenGL APIs, but at the moment we have truncated versions for practical reasons, such as costs and battery life, etc.

I am sure there is a way, but it will not be easy.

+1
source share

All Articles