Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 24: Adding Sound

../ch24/24fig02.gif
Figure 24.2

A world with ambient sound and a set of emitter markers.

24fig02.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
    children [
    # Sound emitter
        Sound {
            source AudioClip {
                url "willow1.wav"
                loop TRUE
            }
            minFront 5.0
            minBack  5.0
            maxFront 10.0
            maxBack  10.0
        },
    # Sound emitter markers
        Inline { url "sndmark.wrl" }
    ]
}