Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Unified Diff: chromeos/audio/audio_devices_pref_handler_stub.cc

Issue 23536034: Set up hdmi output device default volume to 100. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the default value of input gain. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698