571

Adding sound
PointSound example code

  • Load sound data
    MediaContainer myWave = new MediaContainer( "willow1.wav" );

  • Create an attenuation array
    Point2f[] myAtten = {
        new Point2f( 100.0f, 1.0f ),
        new Point2f( 350.0f, 0.5f ),
        new Point2f( 600.0f, 0.0f )
    };