A game needs sound, music and video. It has to offer the player attractive background music. It must also generate sounds associated with certain game events. When a spaceship shoots a laser beam, a sound must accompany this action. Reproducing videos showing high-quality previously rendered animations is a good idea during transitions between one stage and the next.
In this chapter we will add sounds, music and videos to the game. By reading this chapter and following the exercises we will learn how to:
Add background music to the game
Generate sounds associated to the game events
Take advantage of multiple channel audio
Control the reproduction of concurrent sounds
Organize the media elements for the game
Prepare our media elements for their use in Silverlight applications
Take advantage of Silverlight 3 performance enhancements for videos
Reproduce videos combined with animated projections