*fv support

This commit is contained in:
Brian Matzon 2003-12-27 02:10:56 +00:00
parent 46a072cec8
commit 7a763bff29
3 changed files with 63 additions and 3 deletions

View file

@ -315,6 +315,17 @@ public abstract class CoreAL extends BaseAL implements BaseALConstants {
*/
public static native void alListenerf(int pname, float value);
/**
* Listener attributes are changed using the Listener group of commands.
*
* @param pname name of the attribute to be set
* @param value FloatBuffer containing value to set the attribute to
*/
public static void alListener(int pname, FloatBuffer value) {
nalListenerfv(pname, value, value.position());
}
public static native void nalListenerfv(int pname, FloatBuffer value, int offset);
/**
* Listener attributes are changed using the Listener group of commands.
*
@ -404,6 +415,19 @@ public abstract class CoreAL extends BaseAL implements BaseALConstants {
*/
public static native void alSourcef(int source, int pname, float value);
/**
* Specifies the position and other properties as taken into account during
* sound processing.
*
* @param source Source to det property on
* @param pname property to set
* @param value FloatBuffer containing value of property
*/
public static void alSource(int source, int pname, FloatBuffer value) {
nalSourcefv(source, pname, value, value.position());
}
public static native void nalSourcefv(int source, int pname, FloatBuffer value, int offset);
/**
* Specifies the position and other properties as taken into account during
* sound processing.