Tim,

Getting sound working proved a little problematic for me also. If you search
back in the archives you'll find a moderately lengthy email I wrote a few
weeks ago side-stepping some of the pitfalls.

I can see at least two things it looks like your missing, but my memory
fails me on the details. The email I wrote should help you out.

Sincerely,

Daniel Selman

[EMAIL PROTECTED]
http://www.tornadolabs.com

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim Bray
Sent: 03 October 1999 01:36
To: [EMAIL PROTECTED]
Subject: The sounds of silence


The SimpleSound demo that comes with J3d has a complex setup where the
sound is enabled in a Behavior.  I just wanted a simple background hum,
so did the following:

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

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

    myMainBranchGroup.addChild(sound);

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

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

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

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