Lines Matching refs:volume
112 status_t AudioSystem::getMasterVolume(float* volume)
116 *volume = af->masterVolume();
146 status_t AudioSystem::getStreamVolume(int stream, float* volume, int output)
151 *volume = af->streamVolume(stream, output);
196 // convert volume steps to natural log scale
198 // change this value to change volume scaling
204 float AudioSystem::linearToLog(int volume)
206 // float v = volume ? exp(float(100 - volume) * dBConvert) : 0;
207 // LOGD("linearToLog(%d)=%f", volume, v);
209 return volume ? exp(float(100 - volume) * dBConvert) : 0;
212 int AudioSystem::logToLinear(float volume)
214 // int v = volume ? 100 - int(dBConvertInverse * log(volume) + 0.5) : 0;
215 // LOGD("logTolinear(%d)=%f", v, volume);
217 return volume ? 100 - int(dBConvertInverse * log(volume) + 0.5) : 0;