Path: blob/master/dep/cubeb/src/cubeb-jni-instances.h
4246 views
#ifndef _CUBEB_JNI_INSTANCES_H_1#define _CUBEB_JNI_INSTANCES_H_23/*4* The methods in this file offer a way to pass in the required5* JNI instances in the cubeb library. By default they return NULL.6* In this case part of the cubeb API that depends on JNI7* will return CUBEB_ERROR_NOT_SUPPORTED. Currently only one8* method depends on that:9*10* cubeb_stream_get_position()11*12* Users that want to use that cubeb API method must "override"13* the methods bellow to return a valid instance of JavaVM14* and application's Context object.15* */1617JNIEnv *18cubeb_get_jni_env_for_thread()19{20return nullptr;21}2223jobject24cubeb_jni_get_context_instance()25{26return nullptr;27}2829#endif //_CUBEB_JNI_INSTANCES_H_303132