Logo Search packages:      
Sourcecode: blender version File versions

virtual void SND_IAudioDevice::SetObjectRollOffFactor ( int  id,
MT_Scalar  rolloff 
) const [pure virtual]

ROLLOFF_FACTOR is per-Source parameter the application can use to increase or decrease the range of a source by decreasing or increasing the attenuation, respectively. The default value is 1. The implementation is free to optimize for a ROLLOFF_FACTOR value of 0, which indicates that the application does not wish any distance attenuation on the respective Source.

id the id of the object
rolloff a per-source volume scaling factor

Implemented in SND_DummyDevice, and SND_FmodDevice.

Generated by  Doxygen 1.6.0   Back to index