diff options
author | Alex Chronopoulos <[email protected]> | 2018-02-19 17:50:15 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2018-02-19 17:50:15 +0200 |
commit | 84e9568141447d13a3f9e03fcff29c2ab6befce1 (patch) | |
tree | 1df0399b2aa8f503c608dd204c34dae253c93ab0 /src/cubeb-jni-instances.h | |
parent | 1d53c3a3779cbeb860b16aa38cc7f51e196b9745 (diff) | |
download | cubeb-84e9568141447d13a3f9e03fcff29c2ab6befce1.tar.gz cubeb-84e9568141447d13a3f9e03fcff29c2ab6befce1.zip |
opensl es: remove methods relying on use of dlopen. (#412)
opensl es: add new jni files.
apply review commnets
apply jchen comments
Diffstat (limited to 'src/cubeb-jni-instances.h')
-rw-r--r-- | src/cubeb-jni-instances.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/cubeb-jni-instances.h b/src/cubeb-jni-instances.h new file mode 100644 index 0000000..9048629 --- /dev/null +++ b/src/cubeb-jni-instances.h @@ -0,0 +1,30 @@ +#ifndef _CUBEB_JNI_INSTANCES_H_ +#define _CUBEB_JNI_INSTANCES_H_ + +/* + * The methods in this file offer a way to pass in the required + * JNI instances in the cubeb library. By default they return NULL. + * In this case part of the cubeb API that depends on JNI + * will return CUBEB_ERROR_NOT_SUPPORTED. Currently only one + * method depends on that: + * + * cubeb_stream_get_position() + * + * Users that want to use that cubeb API method must "override" + * the methods bellow to return a valid instance of JavaVM + * and application's Context object. + * */ + +JavaVM * +cubeb_jni_get_java_vm() +{ + return nullptr; +} + +jobject +cubeb_jni_get_context_instance() +{ + return nullptr; +} + +#endif //_CUBEB_JNI_INSTANCES_H_ |