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

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: Fix nits. 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
« no previous file with comments | « chromeos/audio/audio_devices_pref_handler_stub.h ('k') | chromeos/audio/cras_audio_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..83b9aabd6cd80b285201b35eec45671487f3f19f 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 0.0;
+ return audio_device_volume_gain_map_[device->id];
}
void AudioDevicesPrefHandlerStub::SetVolumeGainValue(const AudioDevice& device,
« no previous file with comments | « chromeos/audio/audio_devices_pref_handler_stub.h ('k') | chromeos/audio/cras_audio_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698