Lines Matching refs:volume

198         T adjustVolume(T volume) const {  in adjustVolume()  argument
200 const T out = powf(10.f, volume / 10.f); in adjustVolume()
201 VS_LOG("in: %f out: %f", volume, out); in adjustVolume()
202 volume = out; in adjustVolume()
204 return clamp(volume, MIN_LINEAR_VOLUME /* lo */, MAX_LINEAR_VOLUME /* hi */); in adjustVolume()
265 void scaleToStartVolume(T volume) { in scaleToStartVolume() argument
273 const T offset = volume - startVolume; in scaleToStartVolume()
279 const T scale = (volume - endVolume) / (startVolume - endVolume); in scaleToStartVolume()
462 State(T volume, S xOffset) in State() argument
463 : mVolume(volume) in State()
474 void setVolume(T volume) { in setVolume() argument
475 mVolume = volume; in setVolume()
602 const T volume = computeVolumeFromXOffset(mDelayXOffset); in getState() local
604 mDelayXOffset, volume); in getState()
605 return new VolumeShaper::State(volume, mDelayXOffset); in getState()
632 const T volume = computeVolumeFromXOffset(mDelayXOffset); in getVolume() local
633 return std::make_pair(volume, false); in getVolume()
702 const T volume = mConfiguration->adjustVolume(unscaledVolume); // handle log scale in computeVolumeFromXOffset() local
703 VS_LOG("computeVolumeFromXOffset %f -> %f -> %f", xOffset, unscaledVolume, volume); in computeVolumeFromXOffset()
704 return volume; in computeVolumeFromXOffset()
729 const T volume = computeVolumeFromXOffset(xOffset); in computeStateFromNormalizedTime() local
730 return std::make_tuple(volume, xOffset, active); in computeStateFromNormalizedTime()
800 const T volume = state->getVolume(); in applyVolumeShaper() local
801 ALOGD("join: scaling start volume to %f", volume); in applyVolumeShaper()
802 configuration->scaleToStartVolume(volume); in applyVolumeShaper()
909 T volume(1); in getVolume()
914 volume *= shaperVolume.first; in getVolume()
918 mLastVolume = std::make_pair(volume, activeCount != 0); in getVolume()