GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
ofxALSoundSetReferenceDistance() and ofxALSoundSetMaxDistance() don't seem to behave as expected.
One would expect sounds not to be heard at all when the sound source is beyond the MaxDistance, but this is not the case on the default setup. I think it is because of the sound model openAL comes set with.
I found the ofxALSoundSetReferenceDistance() and ofxALSoundSetMaxDistance() to make perfect sense when setting the linear sound model by calling this:
I feel this sound model should be set by default, or at least give the API a method hinting that different sound models exist.
I made a video demonstrating the issue here: http://www.youtube.com/watch?v=7Gz2x8R01jE
@julapy @damiannz can you take a look at this? see what you think. maybe we need an option in the same way that ofMap allows clamped and unclamped scaling?
Fixed in PR #2078