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

Side by Side Diff: webrtc/modules/audio_device/android/audio_record_jni.h

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 17 matching lines...) Expand all
28 // C++-land, but recorded audio buffers are delivered on a high-priority 28 // C++-land, but recorded audio buffers are delivered on a high-priority
29 // thread managed by the Java class. 29 // thread managed by the Java class.
30 // 30 //
31 // The Java class makes use of AudioEffect features (mainly AEC) which are 31 // The Java class makes use of AudioEffect features (mainly AEC) which are
32 // first available in Jelly Bean. If it is instantiated running against earlier 32 // first available in Jelly Bean. If it is instantiated running against earlier
33 // SDKs, the AEC provided by the APM in WebRTC must be used and enabled 33 // SDKs, the AEC provided by the APM in WebRTC must be used and enabled
34 // separately instead. 34 // separately instead.
35 // 35 //
36 // An instance must be created and destroyed on one and the same thread. 36 // An instance must be created and destroyed on one and the same thread.
37 // All public methods must also be called on the same thread. A thread checker 37 // All public methods must also be called on the same thread. A thread checker
38 // will DCHECK if any method is called on an invalid thread. 38 // will RTC_DCHECK if any method is called on an invalid thread.
39 // 39 //
40 // This class uses AttachCurrentThreadIfNeeded to attach to a Java VM if needed 40 // This class uses AttachCurrentThreadIfNeeded to attach to a Java VM if needed
41 // and detach when the object goes out of scope. Additional thread checking 41 // and detach when the object goes out of scope. Additional thread checking
42 // guarantees that no other (possibly non attached) thread is used. 42 // guarantees that no other (possibly non attached) thread is used.
43 class AudioRecordJni { 43 class AudioRecordJni {
44 public: 44 public:
45 // Wraps the Java specific parts of the AudioRecordJni into one helper class. 45 // Wraps the Java specific parts of the AudioRecordJni into one helper class.
46 class JavaAudioRecord { 46 class JavaAudioRecord {
47 public: 47 public:
48 JavaAudioRecord(NativeRegistration* native_registration, 48 JavaAudioRecord(NativeRegistration* native_registration,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 bool recording_; 148 bool recording_;
149 149
150 // Raw pointer handle provided to us in AttachAudioBuffer(). Owned by the 150 // Raw pointer handle provided to us in AttachAudioBuffer(). Owned by the
151 // AudioDeviceModuleImpl class and called by AudioDeviceModuleImpl::Create(). 151 // AudioDeviceModuleImpl class and called by AudioDeviceModuleImpl::Create().
152 AudioDeviceBuffer* audio_device_buffer_; 152 AudioDeviceBuffer* audio_device_buffer_;
153 }; 153 };
154 154
155 } // namespace webrtc 155 } // namespace webrtc
156 156
157 #endif // WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_RECORD_JNI_H_ 157 #endif // WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_RECORD_JNI_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/android/audio_manager.cc ('k') | webrtc/modules/audio_device/android/audio_record_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698