Skip to content

Commit 8830ab0

Browse files
committed
fixup! reapply love-specific patches to OpenAL-Soft
1 parent bc42371 commit 8830ab0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// This file is NOT part of OpenAL-soft
2+
3+
#include <jni.h>
4+
5+
#include "oboe/Oboe.h"
6+
7+
extern "C"
8+
{
9+
10+
JNIEXPORT void JNICALL
11+
Java_org_love2d_android_GameActivity_nativeSetDefaultStreamValues(
12+
JNIEnv *env,
13+
jclass type,
14+
jint sampleRate,
15+
jint framesPerBurst
16+
) {
17+
oboe::DefaultStreamValues::SampleRate = (int32_t) sampleRate;
18+
oboe::DefaultStreamValues::FramesPerBurst = (int32_t) framesPerBurst;
19+
}
20+
21+
}

0 commit comments

Comments
 (0)