#ifndef _CUBEB_JNI_H_ #define _CUBEB_JNI_H_ typedef struct cubeb_jni cubeb_jni; typedef struct cubeb_fx cubeb_fx; enum cubeb_fx_type { CUBEB_FX_ACOUSTIC_ECHO_CANCELER, CUBEB_FX_AUTOMATIC_GAIN_CONTROL, CUBEB_FX_NOISE_SUPPRESSOR, CUBEB_FX_SENTINEL__, }; #ifdef __cplusplus extern "C" { #endif cubeb_jni * cubeb_jni_init(); const char * cubeb_fx_type_description(cubeb_fx_type type); bool cubeb_fx_is_available(cubeb_jni * cubeb_jni_ptr, cubeb_fx_type type); cubeb_fx * cubeb_fx_init(cubeb_jni * cubeb_jni_ptr, cubeb_fx_type type, int audio_session); int cubeb_fx_set_enabled(cubeb_fx * cubeb_fx_ptr, bool enabled); void cubeb_fx_destroy(cubeb_fx * cubeb_fx_ptr); int cubeb_get_output_latency_from_jni(cubeb_jni * cubeb_jni_ptr); void cubeb_jni_destroy(cubeb_jni * cubeb_jni_ptr); #ifdef __cplusplus }; #endif #endif // _CUBEB_JNI_H_