mirror of
https://github.com/love2d/megasource.git
synced 2026-08-12 00:20:55 +02:00
fixup! reapply love-specific patches to OpenAL-Soft
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// This file is NOT part of OpenAL-soft
|
||||
|
||||
#include <jni.h>
|
||||
|
||||
#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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user