A SERVICE OF

logo

168
Chapter 15: Adding Sounds To Virtual Worlds
Overview
A csSound node contains the location of a sound le and the parameters used for playing
it. To play a sound le in a virtual world, attach one or more csSound objects to a scene
graph and apply a csSoundAction to it. To associate a specic sound to a specic shape,
make the csSound object and shape nodes children of the same group nodes.
A csSound node references a csAudioClip node and a csAudioClip node references a
csAudioSamples node, as shown in Figure 15-1.
Figure 15-1 Sound Classes
A csAudioSamples node contains the raw sound data. A csAudioClip node species
how a sound le should be played.
For more information about csAudioClip, see How to Play a Sound File on page 173.
For more information about csAudioSamples, see Specifying Audio Files on page 174.
csSound
csAudioClip
csAudioSamples