I use OpenAL in my iPhone project to create sounds that are attenuated when they are further away from the listener.
However - I also want to reproduce some sound effects that will not be attenuated by distance.
So far, I have decided that using stereo sounds that are not attenuated. But now I am adding a lot of voice commands that take up a lot of space, so I want them to be mono, and now again the problem arises that they are weakened by a distance.
The next solution was to set "AL_MIN_GAIN" of the source reproducing voice samples to 1.0, but this seems to work only on the simulator and not on the device.
Are there other ways to play sound effects with openAL that shouldn't be weakened by distance?
source share