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

Side by Side Diff: webrtc/modules/audio_device/win/audio_device_core_win.cc

Issue 3006793002: Removes unused WaveOut APIs from ADM (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 volume = static_cast<uint32_t> (fLevel*MAX_CORE_SPEAKER_VOLUME); 1038 volume = static_cast<uint32_t> (fLevel*MAX_CORE_SPEAKER_VOLUME);
1039 1039
1040 return 0; 1040 return 0;
1041 1041
1042 Exit: 1042 Exit:
1043 _TraceCOMError(hr); 1043 _TraceCOMError(hr);
1044 return -1; 1044 return -1;
1045 } 1045 }
1046 1046
1047 // ---------------------------------------------------------------------------- 1047 // ----------------------------------------------------------------------------
1048 // SetWaveOutVolume
1049 // ----------------------------------------------------------------------------
1050
1051 int32_t AudioDeviceWindowsCore::SetWaveOutVolume(uint16_t volumeLeft, uint16_t v olumeRight)
1052 {
1053 return -1;
1054 }
1055
1056 // ----------------------------------------------------------------------------
1057 // WaveOutVolume
1058 // ----------------------------------------------------------------------------
1059
1060 int32_t AudioDeviceWindowsCore::WaveOutVolume(uint16_t& volumeLeft, uint16_t& vo lumeRight) const
1061 {
1062 return -1;
1063 }
1064
1065 // ----------------------------------------------------------------------------
1066 // MaxSpeakerVolume 1048 // MaxSpeakerVolume
1067 // 1049 //
1068 // The internal range for Core Audio is 0.0 to 1.0, where 0.0 indicates 1050 // The internal range for Core Audio is 0.0 to 1.0, where 0.0 indicates
1069 // silence and 1.0 indicates full volume (no attenuation). 1051 // silence and 1.0 indicates full volume (no attenuation).
1070 // We add our (webrtc-internal) own max level to match the Wave API and 1052 // We add our (webrtc-internal) own max level to match the Wave API and
1071 // how it is used today in VoE. 1053 // how it is used today in VoE.
1072 // ---------------------------------------------------------------------------- 1054 // ----------------------------------------------------------------------------
1073 1055
1074 int32_t AudioDeviceWindowsCore::MaxSpeakerVolume(uint32_t& maxVolume) const 1056 int32_t AudioDeviceWindowsCore::MaxSpeakerVolume(uint32_t& maxVolume) const
1075 { 1057 {
(...skipping 4059 matching lines...) Expand 10 before | Expand all | Expand 10 after
5135 int key_down = 0; 5117 int key_down = 0;
5136 for (int key = VK_SPACE; key < VK_NUMLOCK; key++) { 5118 for (int key = VK_SPACE; key < VK_NUMLOCK; key++) {
5137 short res = GetAsyncKeyState(key); 5119 short res = GetAsyncKeyState(key);
5138 key_down |= res & 0x1; // Get the LSB 5120 key_down |= res & 0x1; // Get the LSB
5139 } 5121 }
5140 return (key_down > 0); 5122 return (key_down > 0);
5141 } 5123 }
5142 } // namespace webrtc 5124 } // namespace webrtc
5143 5125
5144 #endif // WEBRTC_WINDOWS_CORE_AUDIO_BUILD 5126 #endif // WEBRTC_WINDOWS_CORE_AUDIO_BUILD
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698