jme_openalsoft.com_jme3_audio_android_AndroidEFX.c Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jme3-android-native Show documentation
Show all versions of jme3-android-native Show documentation
jMonkeyEngine is a 3-D game engine for adventurous Java developers
#include "util.h"
#include "../headers/com_jme3_audio_android_AndroidEFX.h"
#include "AL/alext.h"
JNIEXPORT void JNICALL Java_com_jme3_audio_android_AndroidEFX_alGenAuxiliaryEffectSlots
(JNIEnv* env, jobject obj, jint numSlots, jobject buffer)
{
ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffer);
alGenAuxiliaryEffectSlots((ALsizei)numSlots, pBuffers);
}
JNIEXPORT void JNICALL Java_com_jme3_audio_android_AndroidEFX_alGenEffects
(JNIEnv* env, jobject obj, jint numEffects, jobject buffer)
{
ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffer);
alGenEffects((ALsizei)numEffects, pBuffers);
}
JNIEXPORT void JNICALL Java_com_jme3_audio_android_AndroidEFX_alEffecti
(JNIEnv* env, jobject obj, jint effect, jint param, jint value)
{
alEffecti((ALuint)effect, (ALenum)param, (ALint)value);
}
JNIEXPORT void JNICALL Java_com_jme3_audio_android_AndroidEFX_alAuxiliaryEffectSloti
(JNIEnv* env, jobject obj, jint effectSlot, jint param, jint value)
{
alAuxiliaryEffectSloti((ALuint)effectSlot, (ALenum)param, (ALint)value);
}
JNIEXPORT void JNICALL Java_com_jme3_audio_android_AndroidEFX_alDeleteEffects
(JNIEnv* env, jobject obj, jint numEffects, jobject buffer)
{
ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffer);
alDeleteEffects((ALsizei)numEffects, pBuffers);
}
JNIEXPORT void JNICALL Java_com_jme3_audio_android_AndroidEFX_alDeleteAuxiliaryEffectSlots
(JNIEnv* env, jobject obj, jint numEffectSlots, jobject buffer)
{
ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffer);
alDeleteAuxiliaryEffectSlots((ALsizei)numEffectSlots, pBuffers);
}
JNIEXPORT void JNICALL Java_com_jme3_audio_android_AndroidEFX_alGenFilters
(JNIEnv* env, jobject obj, jint numFilters, jobject buffer)
{
ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffer);
alGenFilters((ALsizei)numFilters, pBuffers);
}
JNIEXPORT void JNICALL Java_com_jme3_audio_android_AndroidEFX_alFilteri
(JNIEnv* env, jobject obj, jint filter, jint param, jint value)
{
alFilteri((ALuint)filter, (ALenum)param, (ALint)value);
}
JNIEXPORT void JNICALL Java_com_jme3_audio_android_AndroidEFX_alFilterf
(JNIEnv* env, jobject obj, jint filter, jint param, jfloat value)
{
alFilterf((ALuint)filter, (ALenum)param, (ALfloat)value);
}
JNIEXPORT void JNICALL Java_com_jme3_audio_android_AndroidEFX_alDeleteFilters
(JNIEnv* env, jobject obj, jint numFilters, jobject buffer)
{
ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffer);
alDeleteFilters((ALsizei)numFilters, pBuffers);
}
JNIEXPORT void JNICALL Java_com_jme3_audio_android_AndroidEFX_alEffectf
(JNIEnv* env, jobject obj, jint effect, jint param, jfloat value)
{
alEffectf((ALuint)effect, (ALenum)param, (ALfloat)value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy