Hi all,
Back to this sound problem (at last!). Ok, first, in the file attached
to original letter (Readme.release) i found
> The Java Sound engine supports the following 8- and 16- bit,
> linear and u-law, mono and stereo sound sample file formats: AU,
> AIFF, WAV, and PCM. Non-cached MIDI and RMF files are also
> supported. Neither compressed formats (DVI, GSM, MOD) nor A-law
Well, midi is NOT supported, at least none of those numerous ones i
have (possibly all of them ARE cached?). I attached the sample i tried
(Inside the archive). And i got the following exception:
> J3DHaeClip: Internal Error loadSound get stream failed:
>com.sun.j3d.audio.BadAudioHeaderException: incomplete header information for creating
>an AudioClipData: no data chunk size found.
> javax.media.j3d.SoundException:
>file:/D:/Projects/DrivingSimulator/JavaGameSite/DrivingSimulator/DrivingSimulator/Library/Sound/SoundEffects/JMJarre-Oxygene.mid:
> Sound source data could not be loaded
> at javax.media.j3d.SoundRetained.attachSoundData(SoundRetained.java:355)
> at javax.media.j3d.SoundRetained.updateObject(SoundRetained.java:742)
> at javax.media.j3d.ViewThread.updateMirrorObjects(ViewThread.java:132)
> at javax.media.j3d.ViewThread.run(ViewThread.java:163)
WD> If Java 3D is 'killing' (what exactly do you mean Vladimir?) a playing MIDI
WD> file, that's a bug (not a missing feature) that could be address possiibly by
WD> Java 1.2 FCS.
Now, as to that midi 'hanging' problem. When Canvas3D is created, any
music (i tried midi file) played by AudioClip dies sooner or later
(tested under Windows9x platforms). I already reported this problem
half a year ago (had a discussion here on forum with Doug, if i'm not
mistaken; then privately with him, then he asked me to describe the
problem to a 'sound specialist' who was on vocation that time (was
that u?). So i did: sent the code (modified HelloUniverse) with
thorough description of the problem to that guy and to that email all
bugs should be reported to. We came to conclusion that AudioClip
thread is suppressed by Canvsa3D renderer. I generated this bug again
and attached the file (HelloUniverse) to this letter. Modified section
is at the end of createSceneGraph function. One can play with
minimizing/restoring the frame and see the results. Note also that
midi can be played directly from any Windows application together with
Sound played by Java3D.
Really glad we got back to this problem again after all, though it's
kind of surprising that it's still the news 4 Sun.
All the best,
vladimir
-=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<
In your previous letter u wrote:
--------------------------------
WD> Hello all
WD> Thanks for the recent questions and comments about Java 3D sound, specifically
WD> Jimmy Talbot, Chris Wewerka, Vladimir Olenin.
WD> Unfortunately none of the issues recents asked about on this alias have been
WD> addressed in Java 3D 1.2 Audio Device driver released by Sun. All comments
WD> below refer specifically to this driver and NOT any other driver developed by
WD> others.
WD> 'Sustain' markers ARE currently ignored. The Release notes will be made
WD> clearer that the 'loop' feature of Sun's released Audio Device 3D does not
WD> support this. It unclear when this will be supported by the Java Sound mixer
WD> engine.
WD> There are several mixer contention issues at least on Solaris until 2.8 with its
WD> new Audio mixer is available. Is this problem on Windows as well? It should
WD> not be, and if it is perhaps this bug can be addressed in a timely manner.
WD> If Java 3D is 'killing' (what exactly do you mean Vladimir?) a playing MIDI
WD> file, that's a bug (not a missing feature) that could be address possiibly by
WD> Java 1.2 FCS.
WD> Most compressed formats are NOT understood by Sun's AudioDevice3D driver.
WD> The formats that the Sun's Java 3D AudioDevice3D driver supports are listed
WD> in the Release notes that were (at least for Java 1.1.x) in README.release
WD> programs/examples/Sound. Attached is a copy of these notes.
WD> Thanks again for the input - it is listened to and appreciated.
WD> Warren Dale
HelloUniverse.zip