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

Side by Side Diff: webrtc/modules/audio_device/linux/audio_device_alsa_linux.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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 if (_mixerManager.SpeakerVolume(level) == -1) 314 if (_mixerManager.SpeakerVolume(level) == -1)
315 { 315 {
316 return -1; 316 return -1;
317 } 317 }
318 318
319 volume = level; 319 volume = level;
320 320
321 return 0; 321 return 0;
322 } 322 }
323 323
324
325 int32_t AudioDeviceLinuxALSA::SetWaveOutVolume(uint16_t volumeLeft,
326 uint16_t volumeRight)
327 {
328
329 LOG(LS_WARNING) << "API call not supported on this platform";
330 return -1;
331 }
332
333 int32_t AudioDeviceLinuxALSA::WaveOutVolume(
334 uint16_t& /*volumeLeft*/,
335 uint16_t& /*volumeRight*/) const
336 {
337
338 LOG(LS_WARNING) << "API call not supported on this platform";
339 return -1;
340 }
341
342 int32_t AudioDeviceLinuxALSA::MaxSpeakerVolume( 324 int32_t AudioDeviceLinuxALSA::MaxSpeakerVolume(
343 uint32_t& maxVolume) const 325 uint32_t& maxVolume) const
344 { 326 {
345 327
346 uint32_t maxVol(0); 328 uint32_t maxVol(0);
347 329
348 if (_mixerManager.MaxSpeakerVolume(maxVol) == -1) 330 if (_mixerManager.MaxSpeakerVolume(maxVol) == -1)
349 { 331 {
350 return -1; 332 return -1;
351 } 333 }
(...skipping 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after
2153 state |= (szKey[i] ^ _oldKeyState[i]) & szKey[i]; 2135 state |= (szKey[i] ^ _oldKeyState[i]) & szKey[i];
2154 2136
2155 // Save old state 2137 // Save old state
2156 memcpy((char*)_oldKeyState, (char*)szKey, sizeof(_oldKeyState)); 2138 memcpy((char*)_oldKeyState, (char*)szKey, sizeof(_oldKeyState));
2157 return (state != 0); 2139 return (state != 0);
2158 #else 2140 #else
2159 return false; 2141 return false;
2160 #endif 2142 #endif
2161 } 2143 }
2162 } // namespace webrtc 2144 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698