Just a quick question about the EAX support for JOAL.
Currently I am checking to see if the extension is present using the string “EAX”. I am getting a positive result from the query.
Here is a chunk of code I was using to get it setup:
EAXFactory factory = new EAXFactory();
EAX ex = factory.getEAX();
ByteBuffer effect = ByteBuffer.allocateDirect(8);
effect.putLong(100000);
ex.EAXSet(ex.LISTENER,EAX.EAX_ENVIRONMENT_UNDERWATER,player.source[0],effect,8);
ex.setSourceProperty(player.source[0],EAX.DSPROPERTY_EAXBUFFER_IMMEDIATE,effect);
The documentation isn’t clear as to which set function should be used, the sequence to use them, etc… The early EAX spec from the Creative doc says to use the propSet method (only one of them) to set an effect to a source…
After the setup, I just play the sound normally.
Is then an obvious mistake that I am making?
Thanks,
Dustin