Lines Matching refs:newVolume
540 static inline bool setVolumeRampVariables(float newVolume, int32_t ramp, in setVolumeRampVariables() argument
548 if (newVolume == *pSetVolume) { in setVolumeRampVariables()
551 if (newVolume < 0) { in setVolumeRampVariables()
552 newVolume = 0; // should not have negative volumes in setVolumeRampVariables()
554 switch (fpclassify(newVolume)) { in setVolumeRampVariables()
557 newVolume = 0; in setVolumeRampVariables()
567 newVolume = AudioMixer::UNITY_GAIN_FLOAT; in setVolumeRampVariables()
575 if (newVolume > AudioMixer::UNITY_GAIN_FLOAT) { in setVolumeRampVariables()
576 newVolume = AudioMixer::UNITY_GAIN_FLOAT; in setVolumeRampVariables()
588 const float inc = (newVolume - *pPrevVolume) / ramp; // could be inf, nan, subnormal in setVolumeRampVariables()
590 const float maxv = std::max(newVolume, *pPrevVolume); in setVolumeRampVariables()
609 const float scaledVolume = newVolume * AudioMixer::UNITY_GAIN_INT; // not neg, subnormal, nan in setVolumeRampVariables()
632 *pPrevVolume = newVolume; in setVolumeRampVariables()
636 *pSetVolume = newVolume; in setVolumeRampVariables()