Lines Matching refs:volume
116 status_t AudioSystem::getMasterVolume(float* volume)
120 *volume = af->masterVolume();
151 status_t AudioSystem::getStreamVolume(audio_stream_type_t stream, float* volume,
157 *volume = af->streamVolume(stream, output);
193 // convert volume steps to natural log scale
195 // change this value to change volume scaling
201 float AudioSystem::linearToLog(int volume)
203 // float v = volume ? exp(float(100 - volume) * dBConvert) : 0;
204 // ALOGD("linearToLog(%d)=%f", volume, v);
206 return volume ? exp(float(100 - volume) * dBConvert) : 0;
209 int AudioSystem::logToLinear(float volume)
211 // int v = volume ? 100 - int(dBConvertInverse * log(volume) + 0.5) : 0;
212 // ALOGD("logTolinear(%d)=%f", v, volume);
214 return volume ? 100 - int(dBConvertInverse * log(volume) + 0.5) : 0;