I have a sound that I play ONCE when an event occurs. I call
Sound.setLoop(0) to make sure it only plays once. But I found that if I
"BranchGroup.detach()" the group the sound belongs to, and then reattach
it, the sound plays again.
How can I (easily) keep the sound from playing every time I attach the
sound's group back to the live scene? Is this a bug? The API docs say
(see javax.media.j3d.Sound, last line of the summary):
"When the sound finishes playing it sound data (including all loops)
it is implicitly disabled"
But if the sound is disabled, it should not play again when it's
BranchGroup is reattached.
-Lee
J. Lee Dixon
Software Engineer
SAIC - Celebration, FL
[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".