| 41 | } |
| 42 | |
| 43 | double DistanceEffect::linearGain(double distance) |
| 44 | { |
| 45 | // We want a gain that decreases linearly from m_refDistance to |
| 46 | // m_maxDistance. The gain is 1 at m_refDistance. |
| 47 | return (1.0 - m_rolloffFactor * (distance - m_refDistance) / (m_maxDistance - m_refDistance)); |
| 48 | } |
| 49 | |
| 50 | double DistanceEffect::inverseGain(double distance) |
| 51 | { |
nothing calls this directly
no outgoing calls
no test coverage detected