| OLD | NEW |
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, |
| 49 rtc::scoped_ptr<GlobalRef> audio_track); | 49 rtc::scoped_ptr<GlobalRef> audio_track); |
| 50 ~JavaAudioRecord(); | 50 ~JavaAudioRecord(); |
| 51 | 51 |
| 52 int InitRecording(int sample_rate, int channels); | 52 int InitRecording(int sample_rate, size_t channels); |
| 53 bool StartRecording(); | 53 bool StartRecording(); |
| 54 bool StopRecording(); | 54 bool StopRecording(); |
| 55 bool EnableBuiltInAEC(bool enable); | 55 bool EnableBuiltInAEC(bool enable); |
| 56 bool EnableBuiltInAGC(bool enable); | 56 bool EnableBuiltInAGC(bool enable); |
| 57 bool EnableBuiltInNS(bool enable); | 57 bool EnableBuiltInNS(bool enable); |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 rtc::scoped_ptr<GlobalRef> audio_record_; | 60 rtc::scoped_ptr<GlobalRef> audio_record_; |
| 61 jmethodID init_recording_; | 61 jmethodID init_recording_; |
| 62 jmethodID start_recording_; | 62 jmethodID start_recording_; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 bool recording_; | 154 bool recording_; |
| 155 | 155 |
| 156 // Raw pointer handle provided to us in AttachAudioBuffer(). Owned by the | 156 // Raw pointer handle provided to us in AttachAudioBuffer(). Owned by the |
| 157 // AudioDeviceModuleImpl class and called by AudioDeviceModuleImpl::Create(). | 157 // AudioDeviceModuleImpl class and called by AudioDeviceModuleImpl::Create(). |
| 158 AudioDeviceBuffer* audio_device_buffer_; | 158 AudioDeviceBuffer* audio_device_buffer_; |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace webrtc | 161 } // namespace webrtc |
| 162 | 162 |
| 163 #endif // WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_RECORD_JNI_H_ | 163 #endif // WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_RECORD_JNI_H_ |
| OLD | NEW |