Question: does setLoop() work? I have my BackgroundSound playing, but all
values of setLoop() are ignored. Hmm, I just went and recompiled
SimpleSounds.java in the demos and it seems like all values are ignored
there too. Is there some magic to getting Sound.setLoop() to work?
It seems like the single most common application for a BackgroundSound
would be to run forever, for ambience, so this is making me feel stupid.
COuld this be my sound card? Hm......
BTW, previously I couldn't get any sound at all, asking: why doesn't this
work?
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);
Answer: add the following line of code:
AudioDevice ad = simpleUniverse.getViewer().createAudioDevice();
===========================================================================
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".