419

Adding Sound
Scheduling Bounds Example Code

  • Set bounds relative to the sound's coordinate system
    PointSound sound = new Sound( );
    sound.setSchedulingBounds( bounds );

  • Or relative to a bounding leaf's coordinate system
    TransformGroup group = new TransformGroup( );
    BoundingLeaf leaf = new BoundingLeaf( bounds );
    group.addChild( leaf );
    . . .
    PointSound sound = new Sound( );
    sound.setSchedulingBoundingLeaf( leaf );