@Override public void alListener3f(final int param, final float value1, final float value2, final float value3) { AL10.alListener3f(param, value1, value2, value3); }
public void alListener3f(int param, float value1, float value2, float value3) { AL10.alListener3f(param, value1, value2, value3); }
@Override public void updateListener(Vector3f position, Quat4f orientation, Vector3f velocity) { AL10.alListener3f(AL10.AL_VELOCITY, velocity.x, velocity.y, velocity.z); OpenALException.checkState("Setting listener velocity"); Vector3f dir = orientation.rotate(Direction.FORWARD.getVector3f(), new Vector3f()); Vector3f up = orientation.rotate(Direction.UP.getVector3f(), new Vector3f()); FloatBuffer listenerOri = BufferUtils.createFloatBuffer(6).put(new float[] {dir.x, dir.y, dir.z, up.x, up.y, up.z}); listenerOri.flip(); AL10.alListener(AL10.AL_ORIENTATION, listenerOri); OpenALException.checkState("Setting listener orientation"); this.listenerPosition.set(position); AL10.alListener3f(AL10.AL_POSITION, position.x, position.y, position.z); OpenALException.checkState("Setting listener position"); }
/** * Sets the velocity of the listener. */ public void setVelocity (float x, float y, float z) { if (_vx != x || _vy != y || _vz != z) { AL10.alListener3f(AL10.AL_VELOCITY, _vx = x, _vy = y, _vz = z); } }
public SoundListener(Vector3f position) { alListener3f(AL_POSITION, position.x, position.y, position.z); alListener3f(AL_VELOCITY, 0, 0, 0); }
public SoundListener(Vector3f position) { alListener3f(AL_POSITION, position.x, position.y, position.z); alListener3f(AL_VELOCITY, 0, 0, 0); }
/** * Sets the position of the listener. */ public void setPosition (float x, float y, float z) { if (_px != x || _py != y || _pz != z) { AL10.alListener3f(AL10.AL_POSITION, _px = x, _py = y, _pz = z); } }
public SoundListener(Vector3f position) { alListener3f(AL_POSITION, position.x, position.y, position.z); alListener3f(AL_VELOCITY, 0, 0, 0); }
public SoundListener(Vector3f position) { alListener3f(AL_POSITION, position.x, position.y, position.z); alListener3f(AL_VELOCITY, 0, 0, 0); }
/** * Sets the position of the listener. */ public void setPosition (float x, float y, float z) { if (_px != x || _py != y || _pz != z) { AL10.alListener3f(AL10.AL_POSITION, _px = x, _py = y, _pz = z); } }
public SoundListener(Vector3f position) { alListener3f(AL_POSITION, position.x, position.y, position.z); alListener3f(AL_VELOCITY, 0, 0, 0); }
/** * Sets the velocity of the listener. */ public void setVelocity (float x, float y, float z) { if (_vx != x || _vy != y || _vz != z) { AL10.alListener3f(AL10.AL_VELOCITY, _vx = x, _vy = y, _vz = z); } }
public void setPosition(Vector3f position) { alListener3f(AL_POSITION, position.x, position.y, position.z); }
public void setSpeed(Vector3f speed) { alListener3f(AL_VELOCITY, speed.x, speed.y, speed.z); }
public void setPosition(Vector3f position) { alListener3f(AL_POSITION, position.x, position.y, position.z); }
public void setSpeed(Vector3f speed) { alListener3f(AL_VELOCITY, speed.x, speed.y, speed.z); }
public SoundListener(Vector3f position) { alListener3f(AL_POSITION, position.x, position.y, position.z); alListener3f(AL_VELOCITY, 0, 0, 0); }
public SoundListener(Vector3f position) { alListener3f(AL_POSITION, position.x, position.y, position.z); alListener3f(AL_VELOCITY, 0, 0, 0); }
public SoundListener(Vector3f position) { alListener3f(AL_POSITION, position.x, position.y, position.z); alListener3f(AL_VELOCITY, 0, 0, 0); }
public SoundListener(Vector3f position) { alListener3f(AL_POSITION, position.x, position.y, position.z); alListener3f(AL_VELOCITY, 0, 0, 0); }