EAX support?

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

< bump>

Sorry, I just need an answer and I didn’t want to get lost in the fray.

Thanks,

Dustin

[quote]< bump>

Sorry, I just need an answer and I didn’t want to get lost in the fray.

Thanks,

Dustin
[/quote]
I’ll try to take a look at this shortly.

Checking back on the EAX support. I would really love to start tinkering with this stuff. :slight_smile:

My first post lists the source I was using to try to implement EAX control. Can anyone see a mistake there?

Dustin

Bumpzor!

Currently working on some changes to the JOAL implementation to make it more compatible with JOGL, while at the same time, (hopefully) fixing a number of bugs and verifying the EAX support. With luck I’ll have some news for you by the end of this week!

Don’t forget to vote in the JavaGaming.org Board Elections!

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=announcements;action=display;num=1075703644