![]() |
![]() |
![]() |
![]() |
567 |
MediaContainer myWave = new MediaContainer( "canon.wav" );
BackgroundSound mySound = new BackgroundSound( );
mySound.setSoundData( myWave );
mySound.setEnable( true );
mySound.setInitialGain( 1.0f );
mySound.setLoop( -1 ); // Loop forever
BoundingSphere myBounds = new BoundingSphere(
new Point3d( ), 1000.0 );
mySound.setSchedulingBounds( myBounds );