Hi,
After wrote this simple API http://www.java-gaming.org/index.php/topic,23004.0.html
I’m starting to replace it by SoundSystem in my game and see how it works, especially with the openAL plugin.
One of the functionnality that i need to refactor is “starting a sound with a fadeIn”.
I’m trying this kind of code but it doesn’t work (the sound starts without fades):
SoundSystem ss = new SoundSystem(); // plugins and codec was previously configured
ss.newStreamingSource(false,"espace_01","espace_01.ogg",true, 0, 0, 0, SoundSystemConfig.ATTENUATION_NONE, 0 );
ss.fadeOutIn(null , "espace_01" , 0L , 2000L );
ss.play("espace_01");
I’m sure i miss something important, but i’m not be able to find it…
In the counterpart, the fadeOut works fine with:
ss.fadeOut("espace_01" , null , 1500 );
Sébastien.