1 /* 2 * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. 3 * 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 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef SDK_ANDROID_NATIVE_API_AUDIO_DEVICE_MODULE_AUDIO_DEVICE_ANDROID_H_ 12 #define SDK_ANDROID_NATIVE_API_AUDIO_DEVICE_MODULE_AUDIO_DEVICE_ANDROID_H_ 13 14 #include <jni.h> 15 16 #include "modules/audio_device/include/audio_device.h" 17 18 namespace webrtc { 19 20 #if defined(WEBRTC_AUDIO_DEVICE_INCLUDE_ANDROID_AAUDIO) 21 rtc::scoped_refptr<AudioDeviceModule> CreateAAudioAudioDeviceModule( 22 JNIEnv* env, 23 jobject application_context); 24 #endif 25 26 rtc::scoped_refptr<AudioDeviceModule> CreateJavaAudioDeviceModule( 27 JNIEnv* env, 28 jobject application_context); 29 30 rtc::scoped_refptr<AudioDeviceModule> CreateOpenSLESAudioDeviceModule( 31 JNIEnv* env, 32 jobject application_context); 33 34 rtc::scoped_refptr<AudioDeviceModule> 35 CreateJavaInputAndOpenSLESOutputAudioDeviceModule(JNIEnv* env, 36 jobject application_context); 37 38 } // namespace webrtc 39 40 #endif // SDK_ANDROID_NATIVE_API_AUDIO_DEVICE_MODULE_AUDIO_DEVICE_ANDROID_H_ 41