Hi.
I'm experimenting with sounds and swtiching of views.
I'm using the Carnival demo from the "Ready to Run Java3D" book as the testbed.
Find attached a copy of it, minus a few of the .wrl files to make the attachment
smaller for the list.
Apologies of it's still too large. You will also need J3DTree from
http://www.tornadolabs.com/News/J3dTree_Home/j3dtree_home.html
I add a background sound which plays fine on startup but when I switch viewplatforms
it stops playing.
The offending code is in ViewSite.java at
if (platform != null)
view.attachViewPlatform(platform);
Up till here, obviously, the sound plays fine.
Sound initialisation code is in Carnival.createControlCentre and createSceneGraph.
What do I need to do to get a background sound playing smoothly while view switching?
I would also like point sounds to play from the multiple view points, as a further
test.
At first I thought it was scheduling bounds, but these seem to be set sufficiently. If
the sound device is attached to the PhysicalEnvironment, which is attached to the
View, then switching viewplatforms should automatically play their associated sounds,
should'nt it? Or should the sounds be using schedulingleaf?
I have a feeling it's something obviously simple, but maybe someone else has come
across this.
Thanks,
Paul
__________________________________________________________
Message sent by MyMail http://www.mymail.com.au/
CarnivalV2.zip