602

Controlling the sound environment
AuralAttributes example code

  • Set up aural attributes
    AuralAttributes myAural = new AuralAttributes( );
    myAural.setReverbDelay( 2.0f );
    myAural.setReverbOrder( -1 );  // Until dies out
    myAural.setReflectionCoefficient( 0.2f );  // dampen

  • Create the sound scape
    Soundscape myScape = new Soundscape( );
    myScape.setAuralAttributes( myAural );

  • Set the application bounds
    BoundingSphere myBounds = new BoundingSphere(
        new Point3d( ), 1000.0 );
    myScape.setApplicationBounds( myBounds );