1 /* 2 * Copyright (C) 2015 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #include <jni.h> 18 19 #ifndef _Included_org_drrickorang_loopback_jni 20 #define _Included_org_drrickorang_loopback_jni 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 26 //////////////////////// 27 ////SLE 28 JNIEXPORT jlong JNICALL Java_org_drrickorang_loopback_NativeAudioThread_slesInit 29 (JNIEnv *, jobject, jint, jint, jint, jint, jint, jdouble, jobject byteBuffer, 30 jshortArray loopbackTone, jint maxRecordedLateCallbacks, jint ignoreFirstFrames); 31 32 JNIEXPORT jint JNICALL Java_org_drrickorang_loopback_NativeAudioThread_slesProcessNext 33 (JNIEnv *, jobject, jlong, jdoubleArray, jlong); 34 35 JNIEXPORT jint JNICALL Java_org_drrickorang_loopback_NativeAudioThread_slesDestroy 36 (JNIEnv *, jobject, jlong); 37 38 JNIEXPORT jintArray JNICALL 39 Java_org_drrickorang_loopback_NativeAudioThread_slesGetRecorderBufferPeriod 40 (JNIEnv *, jobject, jlong); 41 42 JNIEXPORT jint JNICALL 43 Java_org_drrickorang_loopback_NativeAudioThread_slesGetRecorderMaxBufferPeriod 44 (JNIEnv *, jobject, jlong); 45 46 JNIEXPORT jdouble JNICALL 47 Java_org_drrickorang_loopback_NativeAudioThread_slesGetRecorderVarianceBufferPeriod 48 (JNIEnv *, jobject, jlong); 49 50 JNIEXPORT jintArray JNICALL 51 Java_org_drrickorang_loopback_NativeAudioThread_slesGetPlayerBufferPeriod 52 (JNIEnv *, jobject, jlong); 53 54 JNIEXPORT jint JNICALL 55 Java_org_drrickorang_loopback_NativeAudioThread_slesGetPlayerMaxBufferPeriod 56 (JNIEnv *, jobject, jlong); 57 58 JNIEXPORT jdouble JNICALL 59 Java_org_drrickorang_loopback_NativeAudioThread_slesGetPlayerVarianceBufferPeriod 60 (JNIEnv *, jobject, jlong); 61 62 JNIEXPORT jint JNICALL 63 Java_org_drrickorang_loopback_NativeAudioThread_slesGetCaptureRank 64 (JNIEnv *, jobject, jlong); 65 66 #ifdef __cplusplus 67 } 68 #endif 69 #endif //_Included_org_drrickorang_loopback_jni 70