492

Controlling the Sound Environment
AuralAttributes Example Code


BoundingSphere bounds = new BoundingSphere(
    new Point3d( 0.0, 0.0, 0.0 ), 1000.0 );
. . .
TransformGroup group = new TransformGroup( );
. . .
AuralAttributes aural = new AuralAttributes( );
aural.setReverbDelay( 2.0f );
aural.setReverbOrder( -1 );  // Until dies out
aural.setReflectionCoefficient( 0.2f );  // dampen
. . .
Soundscape scape = new Soundscape( );
scape.setAuralAttributes( aural );
scape.setApplicationBounds( bounds );
group.addChild( scape );