From: Brian M. <ma...@us...> - 2002-08-19 13:54:37
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory usw-pr-cvs1:/tmp/cvs-serv31230 Modified Files: org_lwjgl_openal_CoreAL.cpp Log Message: basic al support complete Index: org_lwjgl_openal_CoreAL.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_openal_CoreAL.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_openal_CoreAL.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_openal_CoreAL.cpp 15 Aug 2002 15:41:38 -0000 1.1 +++ org_lwjgl_openal_CoreAL.cpp 19 Aug 2002 13:54:34 -0000 1.2 @@ -45,14 +45,128 @@ #include <al.h> /** - * This function returns the current error state and then clears the error state. + * This function enables a feature of the OpenAL driver. + * + * C Specification: + * ALvoid alEnable(ALenum capability); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_enable (JNIEnv *env, jobject obj, jint capability) { + alEnable((ALenum) capability); +} + +/** + * This function disables a feature of the OpenAL driver. + * + * C Specification: + * ALvoid alDisable(ALenum capability); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_disable (JNIEnv *env, jobject obj, jint capability) { + alDisable((ALenum) capability); +} + +/** + * This function returns a boolean indicating if a specific feature is enabled in the OpenAL driver. * * C Specification: - * ALenum alGetError(ALvoid); + * Alboolean alIsEnabled(ALenum capability); */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getError (JNIEnv *env, jobject obj) { - return alGetError(); +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isEnabled (JNIEnv *env, jobject obj, jint capability) { + return (jboolean) alIsEnabled((ALenum) capability); +} + +/** + * This function Enables a feature of the OpenAL driver. + * + * C Specification + * ALvoid alHint(ALenum target, ALenum mode); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_hint (JNIEnv *env, jobject obj, jint target, jint mode) { + //alHint((ALint)target, (ALint)mode); + //cannot link with above statement + return; +} + + +/** + * This function returns a boolean OpenAL state. + * + * C Specification: + * Alboolean alGetBoolean(ALenum pname); + */ +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_getBoolean (JNIEnv *env, jobject obj, jint pname) { + return (jboolean) alGetBoolean((ALenum) pname); +} + +/** + * This function returns an integer OpenAL state. + * + * C Specification: + * Alint alGetInteger(ALenum pname); + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getInteger (JNIEnv *env, jobject obj, jint pname) { + return (jint) alGetInteger((ALenum) pname); +} + +/** + * This function returns a floating point OpenAL state. + * + * C Specification: + * ALfloat alGetFloat(ALenum pname); + */ +JNIEXPORT jfloat JNICALL Java_org_lwjgl_openal_CoreAL_getFloat (JNIEnv *env, jobject obj, jint pname) { + return (jfloat) alGetFloat((ALenum) pname); +} + +/** + * This function returns a double precision floating point OpenAL state. + * + * C Specification: + * Aldouble alGetDouble(ALenum pname); + */ +JNIEXPORT jdouble JNICALL Java_org_lwjgl_openal_CoreAL_getDouble (JNIEnv *env, jobject obj, jint pname) { + return (jdouble) alGetDouble((ALenum) pname); +} + +/** + * This function retrieves a boolean OpenAL state. + * + * C Specification: + * ALvoid alGetBooleanv(ALenum pname,ALboolean *data); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getBooleanv (JNIEnv *env, jobject obj, jint pname, jint data) { + alGetBooleanv((ALenum) pname, (ALboolean*) data); } + +/** + * This function retrieves an integer OpenAL state. + * + * C Specification: + * ALvoid alGetIntegerv(ALenum pname,ALint *data); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getIntegerv (JNIEnv *env, jobject obj, jint pname, jint data) { + alGetIntegerv((ALenum) pname, (ALint*) data); +} + +/** + * This function retrieves a floating point OpenAL state. + * + * C Specification: + * ALvoid alGetFloatv(ALenum pname,ALfloat *data); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getFloatv (JNIEnv *env, jobject obj, jint pname, jint data) { + alGetFloatv((ALenum) pname, (ALfloat*) data); +} + +/** + * This function retrieves a double precision floating point OpenAL state. + * + * C Specification: + * ALvoid alGetDoublev(ALenum pname,ALdouble *data); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getDoublev (JNIEnv *env, jobject obj, jint pname, jint data) { + alGetDoublev((ALenum) pname, (ALdouble*) data); +} + /** * This function retrieves an OpenAL string property. * @@ -60,20 +174,141 @@ * ALubyte * alGetString(ALenum pname); */ JNIEXPORT jstring JNICALL Java_org_lwjgl_openal_CoreAL_getString (JNIEnv *env, jobject obj, jint param) { - return env->NewStringUTF((const char*) alGetString(param)); + return env->NewStringUTF((const char*) alGetString((ALenum)param)); } /** - * This function generates one or more buffers. + * This function returns the current error state and then clears the error state. + * + * C Specification: + * ALenum alGetError(ALvoid); + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getError (JNIEnv *env, jobject obj) { + return (jint) alGetError(); +} + +/** + * This function tests if a specific extension is available for the OpenAL driver. + * + * C Specification: + * ALboolean alIsExtensionPresent(ALubyte *extName); + */ +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isExtensionPresent (JNIEnv *env, jobject obj, jstring fname) { + ALubyte* functionname = (ALubyte*) (env->GetStringUTFChars(fname, 0)); + jboolean result = (jboolean) alIsExtensionPresent(functionname); + env->ReleaseStringUTFChars((jstring)functionname, 0); + + return result; +} + +/** + * This function returns the address of an OpenAL extension function. + * + * C Specification: + * ALvoid * alGetProcAddress(ALubyte *funcName); + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getProcAddress (JNIEnv *env, jobject obj, jstring fname) { + ALubyte* functionname = (ALubyte*) (env->GetStringUTFChars(fname, 0)); + jint result = (jint) alGetProcAddress(functionname); + env->ReleaseStringUTFChars((jstring)functionname, 0); + + return result; +} + +/** + * This function returns the enumeration value of an OpenAL enum described by a string. + * + * C Specification: + * ALenum alGetEnumValue(ALubyte *enumName); + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_CoreAL_getEnumValue (JNIEnv *env, jobject obj, jstring ename) { + ALubyte* functionname = (ALubyte*) (env->GetStringUTFChars(ename, 0)); + jint result = (jint) alGetEnumValue(functionname); + env->ReleaseStringUTFChars((jstring)functionname, 0); + + return result; +} + +/** + * This function sets an integer property of the listener. + * + * C Specification: + * ALvoid alListeneri(ALenum pname,ALint value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_listeneri (JNIEnv *env, jobject obj, jint pname, jint value) { + alListeneri((ALenum) pname, (ALint) value); +} + +/** + * This function sets a floating point property for the listener. + * + * C Specification: + * ALvoid alListenerf(ALenum pname,ALfloat value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_listenerf (JNIEnv *env, jobject obj, jint pname, jfloat value) { + alListenerf((ALenum) pname, (ALfloat) value); +} + +/** + * This function sets a floating point property for the listener. * * C Specification: - * ALvoid alGenBuffers(ALsizei n,ALuint *buffers); + * ALvoid alListener3f(ALenum pname,ALfloat v1,ALfloat v2,ALfloat v3); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_genBuffers (JNIEnv *env, jobject obj, jint n, jintArray buffers) { - int* array = (int*) env->GetIntArrayElements(buffers, 0); - alGenBuffers(n, (ALuint*) array); - env->ReleaseIntArrayElements(buffers, (jint*) array, 0); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_listener3f (JNIEnv *env, jobject obj, jint pname, jfloat v1, jfloat v2, jfloat v3) { + alListener3f((ALenum) pname, (ALfloat) v1, (ALfloat) v2, (ALfloat) v3); +} + +/** + * This function sets a floating point-vector property of the listener. + * + * C Specification: + * ALvoid alListenerfv(ALenum pname,ALfloat *values); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_listenerfv (JNIEnv *env, jobject obj, jint pname, jint values) { + alListenerfv((ALenum) pname, (ALfloat*) values); +} + +/** + * This function retrieves an integer property of the listener. + * + * C Specification: + * ALvoid alGetListeneri(ALenum pname,ALint *value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getListeneri (JNIEnv *env, jobject obj, jint pname, jint value) { + alGetListeneri((ALenum) pname, (ALint*) value); +} + +/** + * This function retrieves a floating point property of the listener. + * + * C Specification: + * ALvoid alGetListenerf(ALenum pname,ALfloat *value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getListenerf (JNIEnv *env, jobject obj, jint pname, jint value) { + alGetListenerf((ALenum) pname, (ALfloat*) value); } + +/** + * This function retrieves a set of three floating point values from a property of the listener. + * + * C Specification: + * ALvoid alGetListener3f(ALenum pname,ALfloat *v1,ALfloat *v2,ALfloat *v3); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getListener3f (JNIEnv *env, jobject obj, jint pname, jint v1, jint v2, jint v3) { + alGetListener3f((ALenum) pname, (ALfloat*) v1, (ALfloat*) v2, (ALfloat*) v3); +} + +/** + * This function retrieves a floating point-vector property of the listener. + * + * C Specification: + * ALvoid alGetListenerfv(ALenum pname,ALfloat *values); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getListenerfv (JNIEnv *env, jobject obj, jint pname, jint values) { + alGetListenerfv((ALenum) pname, (ALfloat*) values); +} + /** * This function generates one or more sources. * @@ -87,13 +322,25 @@ } /** - * This function fills a buffer with audio data. + * This function deletes one or more sources. * * C Specification: - * ALvoid alBufferData(ALuint buffer,ALenum format,ALvoid *data,ALsizei size,ALsizei freq); + * ALvoid alDeleteSources(ALsizei n,ALuint *sources); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_bufferData (JNIEnv *env, jobject obj, jint buffer, jint format, jint data, jint size, jint freq) { - alBufferData(buffer, format, (void**) data, size, freq); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_deleteSources (JNIEnv *env, jobject obj, jint n, jintArray source) { + int* array = (int*) env->GetIntArrayElements(source, 0); + alDeleteSources(n, (ALuint*) array); + env->ReleaseIntArrayElements(source, (jint*) array, 0); +} + +/** + * This function tests if a source name is valid. + * + * C Specification: + * Alboolean alIsSource(ALuint source); + */ +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isSource (JNIEnv *env, jobject obj, jint source) { + return (jboolean) alIsSource((ALuint) source); } /** @@ -102,8 +349,124 @@ * C Specification: * ALvoid alSourcei(ALuint source,ALenum pname,ALint value); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcei (JNIEnv *env, jobject obj, jint source, jint param, jint value) { - alSourcei(source, param, value); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcei (JNIEnv *env, jobject obj, jint source, jint pname, jint value) { + alSourcei((ALuint) source, (ALenum) pname, (ALint) value); +} + +/** + * This function sets a floating point property of a source. + * + * C Specification: + * ALvoid alSourcef(ALuint source,ALenum pname,ALfloat value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcef (JNIEnv *env, jobject obj, jint source, jint pname, jfloat value) { + alSourcef((ALuint) source, (ALenum) pname, (ALfloat) value); +} + +/** + * This function sets a source property requiring three floating point values. + * C Specification: + * ALvoid alSource3f(ALuint source,ALenum pname,ALfloat v1,ALfloat v2,ALfloat v3); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_source3f (JNIEnv *env, jobject obj, jint source, jint pname, jfloat v1, jfloat v2, jfloat v3) { + alSource3f((ALuint) source, (ALenum) pname, (ALfloat) v1, (ALfloat) v2, (ALfloat) v3); +} + +/** + * This function sets a floating point-vector property of a source. + * + * C Specification: + * ALvoid alSourcefv(ALuint source,ALenum pname,ALfloat *values); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcefv (JNIEnv *env, jobject obj, jint source, jint pname, jint values) { + alSourcefv((ALuint) source, (ALenum) pname, (ALfloat*) values); +} + +/** + * This function retrieves an integer property of a source. + * C Specification: + * ALvoid alGetSourcei(ALuint source,ALenum pname,ALint *value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSourcei (JNIEnv *env, jobject obj, jint source, jint pname, jint value) { + alGetSourcei((ALuint) source, (ALenum) pname, (ALint*) value); +} + +/** + * This function retrieves a floating point property of a source. + * + * C Specification: + * ALvoid alGetSourcef(ALuint source,ALenum pname,ALfloat *value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSourcef (JNIEnv *env, jobject obj, jint source, jint pname, jint value) { + alGetSourcef((ALuint) source, (ALenum) pname, (ALfloat*) value); +} + +/* + * This function retrieves a set of three floating point values from a property of a source. + * + * C Specification: + * ALvoid alGetSource3f(ALuint source, ALenum param, ALfloat* v1, ALfloat* v2, ALfloat* v3); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSource3f (JNIEnv *env, jobject obj, jint source, jint pname, jint v1, jint v2, jint v3) { + alGetSource3f((ALuint) source, (ALenum) pname, (ALfloat*) v1, (ALfloat*) v2, (ALfloat*) v3); +} + +/** + * This function retrieves a floating point-vector property of a source. + * + * C Specification: + * ALvoid alGetSourcefv(ALuint source,ALenum pname,ALfloat *values); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getSourcefv (JNIEnv *env, jobject obj, jint source, jint pname, jint values) { + alGetSourcefv((ALuint) source, (ALenum) pname, (ALfloat*) values); +} + +/** + * This function plays a set of sources. + * + * C Specification: + * ALvoid alSourcePlayv(ALsizei n,ALuint *sources); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcePlayv (JNIEnv *env, jobject obj, jint n, jintArray sources) { + int* array = (int*) env->GetIntArrayElements(sources, 0); + alSourcePlayv(n, (ALuint*) array); + env->ReleaseIntArrayElements(sources, (jint*) array, 0); +} + +/** + * This function pauses a set of sources. + * + * C Specification: + * ALvoid alSourcePausev(ALsizei n,ALuint *sources); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcePausev (JNIEnv *env, jobject obj, jint n, jintArray sources) { + int* array = (int*) env->GetIntArrayElements(sources, 0); + alSourcePausev(n, (ALuint*) array); + env->ReleaseIntArrayElements(sources, (jint*) array, 0); +} + +/** + * This function stops a set of sources. + * + * C Specification: + * ALvoid alSourceStopv(ALsizei n,ALuint *sources); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceStopv (JNIEnv *env, jobject obj, jint n, jintArray sources) { + int* array = (int*) env->GetIntArrayElements(sources, 0); + alSourceStopv(n, (ALuint*) array); + env->ReleaseIntArrayElements(sources, (jint*) array, 0); +} + +/** + * This function stops a set of sources and sets all their states to AL_INITIAL. + * + * C Specification: + * ALvoid alSourceRewindv(ALsizei n,ALuint *sources); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceRewindv (JNIEnv *env, jobject obj, jint n, jintArray sources) { + int* array = (int*) env->GetIntArrayElements(sources, 0); + alSourceRewindv(n, (ALuint*) array); + env->ReleaseIntArrayElements(sources, (jint*) array, 0); } /** @@ -113,7 +476,17 @@ * ALvoid alSourcePlay(ALuint source); */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcePlay (JNIEnv *env, jobject obj, jint source) { - alSourcePlay(source); + alSourcePlay((ALuint) source); +} + +/* + * This function pauses a source. + * + * C Specification: + * ALvoid alSourcePause(ALuint source); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourcePause (JNIEnv *env, jobject obj, jint source) { + alSourcePause((ALuint) source); } /** @@ -123,19 +496,29 @@ * ALvoid alSourceStop(ALuint source); */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceStop (JNIEnv *env, jobject obj, jint source) { - alSourceStop(source); + alSourceStop((ALuint) source); } /** - * This function deletes one or more sources. + * This function stops the source and sets its state to AL_INITIAL. * * C Specification: - * ALvoid alDeleteSources(ALsizei n,ALuint *sources); + * ALvoid alSourceRewind(ALuint source); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_deleteSources (JNIEnv *env, jobject obj, jint n, jintArray source) { - int* array = (int*) env->GetIntArrayElements(source, 0); - alDeleteSources(n, (ALuint*) array); - env->ReleaseIntArrayElements(source, (jint*) array, 0); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceRewind (JNIEnv *env, jobject obj, jint source) { + alSourceRewind((ALuint) source); +} + +/** + * This function generates one or more buffers. + * + * C Specification: + * ALvoid alGenBuffers(ALsizei n,ALuint *buffers); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_genBuffers (JNIEnv *env, jobject obj, jint n, jintArray buffers) { + int* array = (int*) env->GetIntArrayElements(buffers, 0); + alGenBuffers(n, (ALuint*) array); + env->ReleaseIntArrayElements(buffers, (jint*) array, 0); } /** @@ -148,4 +531,103 @@ int* array = (int*) env->GetIntArrayElements(buffer, 0); alDeleteBuffers(n, (ALuint*) array); env->ReleaseIntArrayElements(buffer, (jint*) array, 0); -} \ No newline at end of file +} + +/** + * This function tests if a buffer name is valid. + * + * C Specification: + * Alboolean alIsBuffer(ALuint buffer); + */ +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_CoreAL_isBuffer (JNIEnv *env, jobject obj, jint buffer) { + return (jboolean) alIsBuffer((ALuint) buffer); +} + +/** + * This function fills a buffer with audio data. + * + * C Specification: + * ALvoid alBufferData(ALuint buffer,ALenum format,ALvoid *data,ALsizei size,ALsizei freq); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_bufferData (JNIEnv *env, jobject obj, jint buffer, jint format, jint data, jint size, jint freq) { + alBufferData(buffer, format, (void**) data, size, freq); +} + +/** + * This function retrieves an integer property of a buffer. + * + * C Specification: + * ALvoid alGetBufferi(ALuint buffer,ALenum pname,ALint *value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getBufferi (JNIEnv *env, jobject obj, jint buffer, jint pname, jint value) { + alGetBufferi((ALuint) buffer, (ALenum) pname, (ALint*) value); +} + +/** + * This function retrieves a floating point property of a buffer. + * + * C Specification: + * ALvoid alGetBufferf(ALuint buffer,ALenum pname,ALfloat *value); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_getBufferf (JNIEnv *env, jobject obj, jint buffer, jint pname, jint value) { + alGetBufferf((ALuint) buffer, (ALenum) pname, (ALfloat*) value); +} + +/** + * This function queues a set of buffers on a source. + * + * C Specification: + * ALvoid alSourceQueueBuffers( ALuint source, ALsizei n, ALuint* buffers ); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceQueueBuffers (JNIEnv *env, jobject obj, jint source, jint n, jintArray buffers) { + int* array = (int*) env->GetIntArrayElements(buffers, 0); + alSourceQueueBuffers((ALuint) source, (ALsizei) n, (ALuint*) array); + env->ReleaseIntArrayElements(buffers, (jint*) array, 0); +} + +/** + * This function unqueues a set of buffers attached to a source. + * + * C Specification: + * ALvoid alSourceUnqueueBuffers( ALuint source, ALsizei n, ALuint* buffers ); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_sourceUnqueueBuffers (JNIEnv *env, jobject obj, jint source, jint n, jintArray buffers) { + int* array = (int*) env->GetIntArrayElements(buffers, 0); + alSourceUnqueueBuffers((ALuint) source, (ALsizei) n, (ALuint*) array); + env->ReleaseIntArrayElements(buffers, (jint*) array, 0); +} + +/** + * This function selects the OpenAL distance model. + * + * C Specification: + * ALvoid alDistanceModel( ALenum value ); + */ + +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_distanceModel (JNIEnv *env, jobject obj, jint value) { + alDistanceModel((ALenum) value); +} + +/** + * This function selects the OpenAL Doppler factor value. + * + * C Specification: + * ALvoid alDopplerFactor( ALfloat value ); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_dopplerFactor (JNIEnv *env, jobject obj, jfloat value) { + alDopplerFactor((ALfloat) value); +} + +/** + * This function selects the OpenAL Doppler velocity value. + * + * C Specification: + * ALvoid alDopplerVelocity( ALfloat value ); + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_CoreAL_dopplerVelocity (JNIEnv *env, jobject obj, jfloat value) { + alDopplerVelocity((ALfloat) value); +} + + + + |