There is so little information about playing sound in Java3D. I've been through all of the books, the tutorials and even this archive and found very little.
I have used sound alot. See below.
My questions:
1. Is there a definitive reference on sound in Java3D?
What information do you need beside the JavaDocs, and Suns tutorial?
2. I don't want to use a SimpleUniverse, so I've used both JavaSoundMixer and HeadspaceMixer. Both seem to work with my simple example. But what are the pros and cons of each?
I use these 2 as guides to which one to use, either way you will have bugs:
http://developer.java.sun.com/developer/bugParade/bugs/4680280.html http://developer.java.sun.com/developer/bugParade/bugs/4760772.html
3. Is there anything to be gained through creating sound nodes or is it easier/better just to play sounds directly through the mixer? After all you can set position, direction of the sound in the mixer.
Wouldn't know, I always used SoundNodes.
4. If I want to play lots of sounds, is it more efficient to create all the Sound nodes at the start and enable them as and when I want them played them - OR - is it better to have a single sound node, set the capability and keep changing its sound data? This question assumes no two sounds play concurrently. If they did, presumably I'm forced into having one node per sound.
Well I use it like this:
If have a vehicle, then I will have a soundnode for the engine, sirene, doors, horn etc. For a human I would have voice, movement, etc.
Then for each of those I will switch the media to whatever I need to play. E.g. for the engine I have: starting, stopping, idle, runingslow running fast etc..
I'd guess the answer involves caching of sounds and memory usage. Yes?
Because I cache my media it does however consume alot of memory when I use large sound tracks. I want most of my sounds to loop but that does not work if it is set to not-caching. :(
Well there are some other bugs to look at here:
http://developer.java.sun.com/developer/bugParade/bugs/4874837.html http://developer.java.sun.com/developer/bugParade/bugs/4908425.html http://developer.java.sun.com/developer/bugParade/bugs/4634751.html http://developer.java.sun.com/developer/bugParade/bugs/4785695.html
Because of all those issues and many more I have not bothered to report(like positional audio sucks, try it with headphones and you'll know what I mean), I am soon going to switch to using JOAL instead. I suggest you do the same. The positional sound system is simply too bugged to be usable in any serious/commercial way.
---------------------------------------------- Nikolai V. Christensen, Computer Engineer, Simulation and Training department IFAD, Forskerparken 10A, DK-5230 Odense M Denmark, EU Phone: +45 63 15 71 31 Fax: +45 65 93 29 99 WWWeb: http://www.ifad.dk e-mail: [EMAIL PROTECTED] ----------------------------------------------
=========================================================================== 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".