Original Post
So I've been using OpenAL for a while now, but for very simple stuff, like JUST playing sounds, never really implemented if the source is farther away from the listener than it should be quieter. So I have my camera's position and velocity being the listener's position and velocity and each source follows an object which too has position and velocity. This I THOUGHT would be the answer but no luck... I read on OpenAL.org that it doesn't implement the distance factors and it has to be set. So, my question, being that I didn't really understand because there was no example, just definitions of each functions, could someone show me quick, small function that sets the gain appropriate to the distance and velocity from the camera/listener? (I never really ever got into the physics of sounds, just objects hah maybe I need to study up on it)