Basic HTML version of Foils prepared April 7 1998

Foil 42 Controlling Sounds

From Overview of Java2D and Java3D Frameworks CPS616 Web Technologies -- Spring 98. by Geoffrey C. Fox


Java 3D has a set of leaf nodes to add sounds:
Sound
BackgroundSound
PointSound
ConeSound
Soundscape
AuralAttributes
MediaContainer
PointSound ouch = new PointSound( );
ouch.setPosition( 0.0, 3.0, 8.0 );
ouch.setSoundData( ouchSound );
ouch.setLoop( 1 );



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun May 3 1998