Index: chromeos/audio/audio_devices_pref_handler_stub.cc |
diff --git a/chromeos/audio/audio_devices_pref_handler_stub.cc b/chromeos/audio/audio_devices_pref_handler_stub.cc |
index 4f195ab806d0839db2db39899703839bc99f0c21..f615214fa3e65855e45021ca809c3e48bd3f5669 100644 |
--- a/chromeos/audio/audio_devices_pref_handler_stub.cc |
+++ b/chromeos/audio/audio_devices_pref_handler_stub.cc |
@@ -14,9 +14,18 @@ AudioDevicesPrefHandlerStub::AudioDevicesPrefHandlerStub() { |
AudioDevicesPrefHandlerStub::~AudioDevicesPrefHandlerStub() { |
} |
-double AudioDevicesPrefHandlerStub::GetVolumeGainValue( |
- const AudioDevice& device) { |
- return audio_device_volume_gain_map_[device.id]; |
+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 7500.0; |
rkc
2013/09/06 22:01:48
This number is a bit arbitary. We should probably
jennyz
2013/09/06 22:50:47
Done.
|
+ return audio_device_volume_gain_map_[device->id]; |
} |
void AudioDevicesPrefHandlerStub::SetVolumeGainValue(const AudioDevice& device, |