This source file includes following definitions.
- GetOutputVolumeValue
- GetInputGainValue
- SetVolumeGainValue
- GetMuteValue
- SetMuteValue
- GetAudioCaptureAllowedValue
- GetAudioOutputAllowedValue
- AddAudioPrefObserver
- RemoveAudioPrefObserver
#include "chromeos/audio/audio_devices_pref_handler_stub.h"
#include "chromeos/audio/audio_device.h"
namespace chromeos {
AudioDevicesPrefHandlerStub::AudioDevicesPrefHandlerStub() {
}
AudioDevicesPrefHandlerStub::~AudioDevicesPrefHandlerStub() {
}
double AudioDevicesPrefHandlerStub::GetOutputVolumeValue(
const AudioDevice* device) {
if (!device)
return 75.0;
return audio_device_volume_gain_map_[device->id];
}
double AudioDevicesPrefHandlerStub::GetInputGainValue(
const AudioDevice* device) {
if (!device)
return 0.0;
return audio_device_volume_gain_map_[device->id];
}
void AudioDevicesPrefHandlerStub::SetVolumeGainValue(const AudioDevice& device,
double value) {
audio_device_volume_gain_map_[device.id] = value;
}
bool AudioDevicesPrefHandlerStub::GetMuteValue(
const AudioDevice& device) {
return audio_device_mute_map_[device.id];
}
void AudioDevicesPrefHandlerStub::SetMuteValue(const AudioDevice& device,
bool mute_on) {
audio_device_mute_map_[device.id] = mute_on;
}
bool AudioDevicesPrefHandlerStub::GetAudioCaptureAllowedValue() {
return true;
}
bool AudioDevicesPrefHandlerStub::GetAudioOutputAllowedValue() {
return true;
}
void AudioDevicesPrefHandlerStub::AddAudioPrefObserver(
AudioPrefObserver* observer) {
}
void AudioDevicesPrefHandlerStub::RemoveAudioPrefObserver(
AudioPrefObserver* observer) {
}
}