All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jme_openalsoft.com_jme3_audio_android_AndroidEFX.c Maven / Gradle / Ivy

There is a newer version: 3.7.0-stable
Show newest version
#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