Lines Matching refs:volume
74 float volume;
77 volume = (left + right) / 2;
78 if (volume < 0.0) {
79 ALOGW("AudioSessionOutALSA::setVolume(%f) under 0.0, assuming 0.0\n", volume);
80 volume = 0.0;
81 } else if (volume > 1.0) {
82 ALOGW("AudioSessionOutALSA::setVolume(%f) over 1.0, assuming 1.0\n", volume);
83 volume = 1.0;
85 vol = lrint((volume * 0x2000)+0.5);
89 ALOGV("setLpaVolume(%f)\n", volume);
90 ALOGV("Setting LPA volume to %d (available range is 0 to 100)\n", vol);
96 ALOGV("setCompressedVolume(%f)\n", volume);
97 ALOGV("Setting Compressed volume to %d (available range is 0 to 100)\n", vol);
104 ALOGV("Avoid Software volume by returning success\n");