private void setSourceParams(int id, AudioSource src, boolean forceNonLoop) { if (src.isPositional()) { Vector3f pos = src.getPosition(); Vector3f vel = src.getVelocity(); al.alSource3f(id, AL_POSITION, pos.x, pos.y, pos.z); al.alSource3f(id, AL_VELOCITY, vel.x, vel.y, vel.z);
Vector3f vel = src.getVelocity(); al.alSource3f(id, AL_VELOCITY, vel.x, vel.y, vel.z); break;
private void setSourceParams(int id, AudioSource src, boolean forceNonLoop) { if (src.isPositional()) { Vector3f pos = src.getPosition(); Vector3f vel = src.getVelocity(); al.alSource3f(id, AL_POSITION, pos.x, pos.y, pos.z); al.alSource3f(id, AL_VELOCITY, vel.x, vel.y, vel.z);
Vector3f vel = src.getVelocity(); al.alSource3f(id, AL_VELOCITY, vel.x, vel.y, vel.z); break;