Hi,
the title is saying everything. How can I change the position of a sound while it is playing. I couldn’t find any tutorials or demos.
That isn’t working out so well :
static class N extends Thread {
public void run() {
sourcePos[0] = (float) (4 * Math.random() - 2);
sourcePos[1] = (float) (4 * Math.random() - 2);
sourcePos[2] = (float) (4 * Math.random() - 2);
al.alSourcefv(source[0], AL.AL_POSITION, sourcePos, 0);
try { sleep(500); } catch (InterruptedException e) { }
}
}
(modified version of lesson1 - SingleStaticSource
thanks
Diggi