Java3D Sound

Hi,
I have 2 questions regarding to Java3D Sound API.

  1. I am trying to implement a ship horn sound. All I want to do is to play the sound while a button is pressed and stop when button is released. But the problem is I want the sound to loop in the specified intervals.
    For example my sound is 1000 msec and I want the loop interval to be 300 and 700 msec portions of the sound sample. As far as I see, there is no capability in the Sound class or its parents for this capability, however in the source code of JSSample class there are variables for attack and release to define the loop parameters (They are not modifiable) How can I set the loop parameters.

  2. Can Java3D Sound API and JavaSound can work together in the same application.

Bye.

Somewhat, yes. The current version of Java3D, 1.3.2, has most of its sound capabilities disabled when it went to open source due to licensing restrictions. I don’t remember any code being in there that down samples the full spatialised sound back to stereo that JavaSound provides. I’d have to look it back up though. These days we do our sound spatialisation using JOAL independent of Java3D.

I thought 1.4 had integrated JOAL.

Ill ask the guys…

They were talking about it a few months ago, but I haven’t seen anything appear in the codebase. What they were talking about was to provide a very simple framework and let the community develop it further.