Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
stenzek
GitHub Repository: stenzek/duckstation
Path: blob/master/dep/cubeb/src/cubeb-jni-instances.h
4246 views
1
#ifndef _CUBEB_JNI_INSTANCES_H_
2
#define _CUBEB_JNI_INSTANCES_H_
3
4
/*
5
* The methods in this file offer a way to pass in the required
6
* JNI instances in the cubeb library. By default they return NULL.
7
* In this case part of the cubeb API that depends on JNI
8
* will return CUBEB_ERROR_NOT_SUPPORTED. Currently only one
9
* method depends on that:
10
*
11
* cubeb_stream_get_position()
12
*
13
* Users that want to use that cubeb API method must "override"
14
* the methods bellow to return a valid instance of JavaVM
15
* and application's Context object.
16
* */
17
18
JNIEnv *
19
cubeb_get_jni_env_for_thread()
20
{
21
return nullptr;
22
}
23
24
jobject
25
cubeb_jni_get_context_instance()
26
{
27
return nullptr;
28
}
29
30
#endif //_CUBEB_JNI_INSTANCES_H_
31
32