Re: OpenAL sources - volume issues
Vern Jensen <[email protected]> Fri, 5 Aug 2011 18:09:34 -0700
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
I've done more testing this, and it's better explained like so: 1) Play a sound in an OpenAL source at a high gain, like 1.0. 2) Once the sound has finished playing, play a different sound in any source at a very low gain, like 0.01. The new sound will *not* play at the specific 0.01 gain, but will rather start at the 1.0 gain and "slide down" to the proper gain setting. For very short sounds, like button clicks, this results in the next several click sounds coming out at, say, 1.0, 0.7, 0.4, and finally 0.01 gains. (These values are estimates of what it sounds like to my ear... I don't know the exact gain they are being played at.) For longer sound effects, the sound starts at around 1.0 gain and quickly slides down to 0.01 within a fraction of a second, but slow enough that you can hear it. The opposite happens too: 1) Play a sound in any source at very low gain, like 0.01. Wait for it to finish playing. 2) Play a sound in any source at a very high gain, like 1.0. The second sound will start very quiet and ramp up to the proper gain. I have done extensive testing and this is not user error on my part. I can prove it: it is very easy to modify the OpenALExample in: /Developer/Examples/CoreAudio/Sevices/ to demonstrate the issue. This is on MacOS X 10.6.8. I haven't verified if this happens on other OSes. -Vern _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal