1 | Java 3D has a set of leaf nodes to add sounds: |
2 | Sound |
3 | BackgroundSound |
4 | PointSound |
5 | ConeSound |
6 | Soundscape |
7 | AuralAttributes |
8 | MediaContainer |
9 | PointSound ouch = new PointSound( ); |
10 | ouch.setPosition( 0.0, 3.0, 8.0 ); |
11 | ouch.setSoundData( ouchSound ); |
12 | ouch.setLoop( 1 ); |