My guess is that you forgot to initialize the/a Java sound mixer.  I'm
not sure what kind of juju it does but you need to create one AND you
have to initialize it.


        JavaSoundMixer mixer = new JavaSoundMixer(host);
        mixer.initialize();


--jon


> 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

____________________ Peculiar Technologies ____________________
Jon Barrilleaux       3800 Lake Shore Ave.         Purveyors of
[EMAIL PROTECTED]        Oakland, CA 94610      Alternate Reality
510.444.4370 voc                           Augmented Simulation
510.444.0231 fax        www.augsim.com         and 3D Solutions

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