Hi,

I have a scene using a Pointsound object. This object has an
MediaContainer and is live. When I add an InputStream to the
MediaContainer and enable the Pointsound object, I'd expect to hear the
sound but the J3D-thread crashes with the following exception:

java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
       at java.util.Vector.removeElementAt(Vector.java:517)
       at com.sun.j3d.audio.J3DHaeClip.loadSample(J3DHaeClip.java:70)
       at
com.sun.j3d.audioengines.javasound.JavaSoundMixer.loadSound(JavaSoundMixer.java:211)
       at
com.sun.j3d.audioengines.javasound.JavaSoundMixer.prepareSound(JavaSoundMixer.java:275)
       at
javax.media.j3d.SoundScheduler.attachSoundData(SoundScheduler.java:2666)
       at
javax.media.j3d.SoundScheduler.processSoundAtom(SoundScheduler.java:1285)
       at
javax.media.j3d.SoundScheduler.calcSchedulingAction(SoundScheduler.java:1577)
       at javax.media.j3d.SoundScheduler.renderChanges(SoundScheduler.java:787)
       at javax.media.j3d.SoundScheduler.processMessages(SoundScheduler.java:229)
       at
javax.media.j3d.StructureUpdateThread.doWork(StructureUpdateThread.java:83)
       at javax.media.j3d.J3dThread.run(J3dThread.java:256)

That seems to be a bug of J3D 1.2.1 for Linux (I don't know if it is
reproducebale using Windows too). So my question is: does anybody know a
workaround for this problem? Changing the audio playback type of the
AudioDevice did not help.

Michael

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to