35package com.jogamp.openal.sound3d;
37import com.jogamp.openal.ALConstants;
67 final float[] f =
new float[1];
84 public void setPosition(
final float x,
final float y,
final float z) {
108 final float[] tmp =
new float[3];
110 result =
new Vec3f(tmp[0], tmp[1], tmp[2]);
135 final float[] tmp =
new float[3];
137 result =
new Vec3f(tmp[0], tmp[1], tmp[2]);
161 final float[] tmp =
new float[6];
The AudioSystem3D class provides a set of methods for creating and manipulating a 3D audio environmen...
This class represents the human listener in the Sound3D environment.
float getGain()
Gets the value of the gain, or volume of the audio in the environment relative to the listener.
Vec3f getPosition()
Gets the position in (x-y-z coordinates) of the Listener in the Sound3D environment.
Vec3f getVelocity()
Gets the velocity in (x-y-z coordinates) of the Listener in the Sound3D environment.
void setOrientation(final float[] orientation)
Sets the orientation of the Listener in the Sound3D environment.
void setVelocity(final Vec3f velocity)
Sets the velocity in (x-y-z coordinates) of the Listener in the Sound3D environment.
void setPosition(final Vec3f position)
Sets the position in (x-y-z coordinates) of the Listener in the Sound3D environment.
float[] getOrientation()
Gets the orientation of the Listener in the Sound3D environment.
void setGain(final float gain)
Sets the Gain, or volume of the audio in the environment relative to the listener.
void setPosition(final float x, final float y, final float z)
Sets the position in (x-y-z coordinates) of the Listener in the Sound3D environment.
A convenience class representing a 3-element float vector.
final float v3
the first element in the vector
final float v2
the first element in the vector
final float v1
the first element in the vector
static final int AL_GAIN
Define "AL_GAIN" with expression '0x100A', CType: int.
static final int AL_ORIENTATION
Define "AL_ORIENTATION" with expression '0x100F', CType: int.
static final int AL_VELOCITY
Define "AL_VELOCITY" with expression '0x1006', CType: int.
static final int AL_POSITION
Define "AL_POSITION" with expression '0x1004', CType: int.
void alListener3f(int param, float value1, float value2, float value3)
Entry point (through function pointer) to C language function: void alListener3f(ALenum param,...
void alGetListenerf(int param, FloatBuffer value)
Entry point (through function pointer) to C language function: void alGetListenerf(ALenum param,...
void alGetListenerfv(int param, FloatBuffer values)
Entry point (through function pointer) to C language function: void alGetListenerfv(ALenum param,...
void alListenerfv(int param, FloatBuffer values)
Entry point (through function pointer) to C language function: void alListenerfv(ALenum param,...
void alListenerf(int param, float value)
Entry point (through function pointer) to C language function: void alListenerf(ALenum param,...