| OLD | NEW |
| 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 | 365 |
| 366 if (_mixerManager.SpeakerVolume(level) == -1) { | 366 if (_mixerManager.SpeakerVolume(level) == -1) { |
| 367 return -1; | 367 return -1; |
| 368 } | 368 } |
| 369 | 369 |
| 370 volume = level; | 370 volume = level; |
| 371 | 371 |
| 372 return 0; | 372 return 0; |
| 373 } | 373 } |
| 374 | 374 |
| 375 int32_t AudioDeviceLinuxPulse::SetWaveOutVolume(uint16_t volumeLeft, | |
| 376 uint16_t volumeRight) { | |
| 377 LOG(LS_WARNING) << "API call not supported on this platform"; | |
| 378 return -1; | |
| 379 } | |
| 380 | |
| 381 int32_t AudioDeviceLinuxPulse::WaveOutVolume(uint16_t& /*volumeLeft*/, | |
| 382 uint16_t& /*volumeRight*/) const { | |
| 383 LOG(LS_WARNING) << "API call not supported on this platform"; | |
| 384 return -1; | |
| 385 } | |
| 386 | |
| 387 int32_t AudioDeviceLinuxPulse::MaxSpeakerVolume(uint32_t& maxVolume) const { | 375 int32_t AudioDeviceLinuxPulse::MaxSpeakerVolume(uint32_t& maxVolume) const { |
| 388 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 376 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 389 uint32_t maxVol(0); | 377 uint32_t maxVol(0); |
| 390 | 378 |
| 391 if (_mixerManager.MaxSpeakerVolume(maxVol) == -1) { | 379 if (_mixerManager.MaxSpeakerVolume(maxVol) == -1) { |
| 392 return -1; | 380 return -1; |
| 393 } | 381 } |
| 394 | 382 |
| 395 maxVolume = maxVol; | 383 maxVolume = maxVol; |
| 396 | 384 |
| (...skipping 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2515 | 2503 |
| 2516 // A bit change in keymap means a key is pressed | 2504 // A bit change in keymap means a key is pressed |
| 2517 for (i = 0; i < sizeof(szKey); i++) | 2505 for (i = 0; i < sizeof(szKey); i++) |
| 2518 state |= (szKey[i] ^ _oldKeyState[i]) & szKey[i]; | 2506 state |= (szKey[i] ^ _oldKeyState[i]) & szKey[i]; |
| 2519 | 2507 |
| 2520 // Save old state | 2508 // Save old state |
| 2521 memcpy((char*)_oldKeyState, (char*)szKey, sizeof(_oldKeyState)); | 2509 memcpy((char*)_oldKeyState, (char*)szKey, sizeof(_oldKeyState)); |
| 2522 return (state != 0); | 2510 return (state != 0); |
| 2523 } | 2511 } |
| 2524 } // namespace webrtc | 2512 } // namespace webrtc |
| OLD | NEW |