Hi,

Possibly  i'm  wrong, but as far as i know currently Java3D supports only .wav
files.  Since  your  source  code doesn't differ very much from the one i have
(and  which  does  work),  then i guess that's the very problem. So, try using
.wav files.

vladimir
             -=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<

In your previous letter u wrote:
--------------------------------
TB> The SimpleSound demo that comes with J3d has a complex setup where the
TB> sound is enabled in a Behavior.  I just wanted a simple background hum,
TB> so did the following:

TB>     MediaContainer mc = new MediaContainer();
TB>     mc.setURL("url-of-my-.au-file");

TB>     BackgroundSound sound = new BackgroundSound();
TB>     sound.setLoop(0);
TB>     sound.setEnable(true);
TB>     sound.setSoundData(mc);
TB>     sound.setInitialGain(0.7f);
TB>     sound.setSchedulingBounds(box);  // bounds include where I am

TB>     myMainBranchGroup.addChild(sound);

TB> I don't hear anything.  I can run SimpleSound, so I know the machinery
TB> ought to work.  I can restructure my sound app to be in a behavior and
TB> do a byte-for-byte cut & paste out of SimpleSound which should get me
TB> some audio, but does anyone know what is missing from the above recipe?

TB> Among other things, I get the impression it's not even trying to read
TB> the .au file... -Tim

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

===========================================================================
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