Areas


Topics

j3d.org

Audio Devices

  1. Why doesn't Java 3D audio work with JMF?
  2. Why doesn't my PC card deliver 3D audio?
  3. When I stop rendering, how do I stop the audio playing?
  4. Where can I find code for my Audio card?

Return to the main FAQ page for more questions and answers.

 

1. Why doesn't Java 3D audio work with JMF?
Contributor: Warren Dale

Suggestions of things to be careful of:

If you are NOT using audio thru Java 3D then don't initialise the Java3D audio device. If you want to run audio from both, please try initialing JMF first then Java3D. Java3D audio device attempts to make J3D audio device initialization friendly in that it queries to see if a JavaSound mixer already exists (is running) - if there is one running it should just attach to it automatically.

If the later approaches does NOT work on the system you're running on please send mail to j3d bugs notification.

 

2. Why doesn't my PC card deliver 3D audio?

Long hard answer. In short, the current implementations of Java 3D software mix the audio to only a double channel (stereo) output due to the implementation of the utility classes. It never makes use of the AudioDevice3D interface methods. Maybe this will be fixed in some future release???

 

3. When I stop rendering, how do I stop the audio playing?

To stop both the audio and rendering processes you can use the stopView() method of the View class. To restart where you left off at a later point, call startView().

 

4. Where can I find code for my Audio card?

j3d.org maintains a page of all known AudioDevice implementations. At this time, the only known implementation comes with Sun's utility classes and uses JavaSound to implement audio rendering.