diff --git a/libs/openal-soft/opensl_latency.cpp b/libs/openal-soft/opensl_latency.cpp new file mode 100644 index 00000000..e0274a5d --- /dev/null +++ b/libs/openal-soft/opensl_latency.cpp @@ -0,0 +1,21 @@ +// This file is NOT part of OpenAL-soft + +#include + +#include "oboe/Oboe.h" + +extern "C" +{ + +JNIEXPORT void JNICALL +Java_org_love2d_android_GameActivity_nativeSetDefaultStreamValues( + JNIEnv *env, + jclass type, + jint sampleRate, + jint framesPerBurst +) { + oboe::DefaultStreamValues::SampleRate = (int32_t) sampleRate; + oboe::DefaultStreamValues::FramesPerBurst = (int32_t) framesPerBurst; +} + +}