Lines Matching refs:volume

215 int32_t AudioMixerManagerMac::SetSpeakerVolume(uint32_t volume) {
217 "AudioMixerManagerMac::SetSpeakerVolume(volume=%u)", volume);
231 // volume range is 0.0 - 1.0, convert from 0 -255
232 const Float32 vol = (Float32)(volume / 255.0);
236 // Does the capture device have a master volume control?
267 " Unable to set a volume on any output channel");
274 int32_t AudioMixerManagerMac::SpeakerVolume(uint32_t& volume) const {
287 // Does the device have a master volume control?
299 volume = static_cast<uint32_t>(vol * 255 + 0.5);
301 // Otherwise get the average volume across channels.
319 " Unable to get a volume on any channel");
325 volume = static_cast<uint32_t>(255 * vol / channels + 0.5);
341 // volume range is 0.0 to 1.0
355 // volume range is 0.0 to 1.0
369 // volume range is 0.0 to 1.0
385 // Does the capture device have a master volume control?
523 // Does the device have a master volume control?
699 // Does the device have a master volume control?
805 // Does the capture device have a master volume control?
836 int32_t AudioMixerManagerMac::SetMicrophoneVolume(uint32_t volume) {
838 "AudioMixerManagerMac::SetMicrophoneVolume(volume=%u)", volume);
852 // volume range is 0.0 - 1.0, convert from 0 - 255
853 const Float32 vol = (Float32)(volume / 255.0);
857 // Does the capture device have a master volume control?
895 int32_t AudioMixerManagerMac::MicrophoneVolume(uint32_t& volume) const {
908 // Does the device have a master volume control?
920 volume = static_cast<uint32_t>(volFloat32 * 255 + 0.5);
922 // Otherwise get the average volume across channels.
946 volume = static_cast<uint32_t>(255 * volFloat32 / channels + 0.5);
951 volume);
963 // volume range is 0.0 to 1.0
977 // volume range is 0.0 to 1.0
992 // volume range is 0.0 to 1.0