1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chromeos/audio/audio_devices_pref_handler_stub.h"
7 #include "chromeos/audio/audio_device.h"
11 AudioDevicesPrefHandlerStub::AudioDevicesPrefHandlerStub() {
14 AudioDevicesPrefHandlerStub::~AudioDevicesPrefHandlerStub() {
17 double AudioDevicesPrefHandlerStub::GetOutputVolumeValue(
18 const AudioDevice
* device
) {
21 return audio_device_volume_gain_map_
[device
->id
];
24 double AudioDevicesPrefHandlerStub::GetInputGainValue(
25 const AudioDevice
* device
) {
28 return audio_device_volume_gain_map_
[device
->id
];
31 void AudioDevicesPrefHandlerStub::SetVolumeGainValue(const AudioDevice
& device
,
33 audio_device_volume_gain_map_
[device
.id
] = value
;
36 bool AudioDevicesPrefHandlerStub::GetMuteValue(
37 const AudioDevice
& device
) {
38 return audio_device_mute_map_
[device
.id
];
41 void AudioDevicesPrefHandlerStub::SetMuteValue(const AudioDevice
& device
,
43 audio_device_mute_map_
[device
.id
] = mute_on
;
46 bool AudioDevicesPrefHandlerStub::GetAudioCaptureAllowedValue() {
50 bool AudioDevicesPrefHandlerStub::GetAudioOutputAllowedValue() {
54 void AudioDevicesPrefHandlerStub::AddAudioPrefObserver(
55 AudioPrefObserver
* observer
) {
58 void AudioDevicesPrefHandlerStub::RemoveAudioPrefObserver(
59 AudioPrefObserver
* observer
) {
62 } // namespace chromeos