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

Side by Side Diff: webrtc/modules/audio_device/linux/audio_device_alsa_linux.cc

Issue 2978083002: Replace WEBRTC_TRACE logging in modules/audio_device/linux/ (Closed)
Patch Set: Identical, no deps. Created 3 years, 5 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 static const unsigned int ALSA_PLAYOUT_LATENCY = 40*1000; // in us 51 static const unsigned int ALSA_PLAYOUT_LATENCY = 40*1000; // in us
52 static const unsigned int ALSA_CAPTURE_FREQ = 48000; 52 static const unsigned int ALSA_CAPTURE_FREQ = 48000;
53 static const unsigned int ALSA_CAPTURE_CH = 2; 53 static const unsigned int ALSA_CAPTURE_CH = 2;
54 static const unsigned int ALSA_CAPTURE_LATENCY = 40*1000; // in us 54 static const unsigned int ALSA_CAPTURE_LATENCY = 40*1000; // in us
55 static const unsigned int ALSA_CAPTURE_WAIT_TIMEOUT = 5; // in ms 55 static const unsigned int ALSA_CAPTURE_WAIT_TIMEOUT = 5; // in ms
56 56
57 #define FUNC_GET_NUM_OF_DEVICE 0 57 #define FUNC_GET_NUM_OF_DEVICE 0
58 #define FUNC_GET_DEVICE_NAME 1 58 #define FUNC_GET_DEVICE_NAME 1
59 #define FUNC_GET_DEVICE_NAME_FOR_AN_ENUM 2 59 #define FUNC_GET_DEVICE_NAME_FOR_AN_ENUM 2
60 60
61 AudioDeviceLinuxALSA::AudioDeviceLinuxALSA(const int32_t id) : 61 AudioDeviceLinuxALSA::AudioDeviceLinuxALSA() :
62 _ptrAudioBuffer(NULL), 62 _ptrAudioBuffer(NULL),
63 _mixerManager(id),
64 _inputDeviceIndex(0), 63 _inputDeviceIndex(0),
65 _outputDeviceIndex(0), 64 _outputDeviceIndex(0),
66 _inputDeviceIsSpecified(false), 65 _inputDeviceIsSpecified(false),
67 _outputDeviceIsSpecified(false), 66 _outputDeviceIsSpecified(false),
68 _handleRecord(NULL), 67 _handleRecord(NULL),
69 _handlePlayout(NULL), 68 _handlePlayout(NULL),
70 _recordingBuffersizeInFrame(0), 69 _recordingBuffersizeInFrame(0),
71 _recordingPeriodSizeInFrame(0), 70 _recordingPeriodSizeInFrame(0),
72 _playoutBufferSizeInFrame(0), 71 _playoutBufferSizeInFrame(0),
73 _playoutPeriodSizeInFrame(0), 72 _playoutPeriodSizeInFrame(0),
(...skipping 2080 matching lines...) Expand 10 before | Expand all | Expand 10 after
2154 state |= (szKey[i] ^ _oldKeyState[i]) & szKey[i]; 2153 state |= (szKey[i] ^ _oldKeyState[i]) & szKey[i];
2155 2154
2156 // Save old state 2155 // Save old state
2157 memcpy((char*)_oldKeyState, (char*)szKey, sizeof(_oldKeyState)); 2156 memcpy((char*)_oldKeyState, (char*)szKey, sizeof(_oldKeyState));
2158 return (state != 0); 2157 return (state != 0);
2159 #else 2158 #else
2160 return false; 2159 return false;
2161 #endif 2160 #endif
2162 } 2161 }
2163 } // namespace webrtc 2162 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698