| 467 | } |
| 468 | |
| 469 | void Mixer::setGroupVolume(MixerGroup group, float targetValue, float rampTime) { |
| 470 | MutexLocker locker(m_mutex); |
| 471 | if (rampTime <= 0.0f) { |
| 472 | m_groupVolumes[group].value = targetValue; |
| 473 | m_groupVolumes[group].target = targetValue; |
| 474 | m_groupVolumes[group].velocity = 0.0f; |
| 475 | } else { |
| 476 | m_groupVolumes[group].target = targetValue; |
| 477 | m_groupVolumes[group].velocity = rateOfChangeFromRampTime(rampTime); |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | void Mixer::update(float, PositionalAttenuationFunction positionalAttenuationFunction) { |
| 482 | { |
no test coverage detected