Logo Search packages:      
Sourcecode: blender version File versions

virtual void SND_IAudioDevice::SetObjectReferenceDistance ( int  id,
MT_Scalar  referencedistance 
) const [pure virtual]

set the distance at which the Listener will experience gain. G_dB = GAIN - 20*log10(1 + ROLLOFF_FACTOR*(dist-REFERENCE_DISTANCE)/REFERENCE_DISTANCE );

id the id of the object
referencedistance the distance at which the listener will start hearing

Implemented in SND_DummyDevice, and SND_FmodDevice.

Generated by  Doxygen 1.6.0   Back to index