Original Post
Using "alSourcei(source, AL_REFERENCE_DISTANCE, 10);" should make it so that whenever the source is closer than 10 units to the listener it will play at full volume correct? and with "alSourcef(dest_source, AL_MAX_DISTANCE, 20);" the source should not be heard farther than 20 units right? So a source that is 15 units away after those two calls should play with a gain of 0.5, correct?
For some reason, it seems like for me changing "AL_REFERENCE_DISTANCE" has no effect at all, and "AL_MAX_DISTANCE" plays the sound at what I assume is full volume with a value of 1, and nearly inaudibly with a value of 1000 and my speakers turned all the way up. Shouldn't the opposite be happening? The source position is about 850 units away from the listener while I'm testing, and I set the listener orientation as "{0,0,0, 0,0,0}" hoping to make sound play based solely on distance.
Also, is it possible to return the gain value that a source is playing at? It would be useful to be able to judge differences without human error.
For some reason, it seems like for me changing "AL_REFERENCE_DISTANCE" has no effect at all, and "AL_MAX_DISTANCE" plays the sound at what I assume is full volume with a value of 1, and nearly inaudibly with a value of 1000 and my speakers turned all the way up. Shouldn't the opposite be happening? The source position is about 850 units away from the listener while I'm testing, and I set the listener orientation as "{0,0,0, 0,0,0}" hoping to make sound play based solely on distance.
Also, is it possible to return the gain value that a source is playing at? It would be useful to be able to judge differences without human error.