duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

cubeb-jni-instances.h (710B)


      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_