A SERVICE OF

logo

167
Chapter 15
15. Adding Sounds To Virtual Worlds
You can incorporate sound into your virtual worlds by including at least one csSound
node in a scene graph and by invoking a csSoundAction. The csSoundAction plays the
sound le specied in the csSound node. This node also includes parameters, such as
volume, for playing the sound.
This chapter describes how to set and play sound using Cosmo 3D.
These are the sections in this chapter:
•“Overview on page 168.
•“How to Play a Sound File on page 173.
•“Specifying Audio Files on page 174.
•“Playing Sound in Immediate Mode on page 177.