Game Development Reference
In-Depth Information
Summary
In this chapter we got into the world of sound programming. First we looked at what
sound is and some of its basic properties. Then, we looked at the differences between
DirectSound and XAudio2. We added music to our 2D tile world demo using Direc-
tSound. Next, we added some code to do the same thing but using XAudio2, and we
created a member variable to control whether the program will use DirectSound or
XAudio2 to play its sound. We also looked at how to control volume, frequency, and
panning for a sound in both DirectSound and XAudio2. In the next chapter, we will
take a look at Direct3D and how to render simple 3D graphics.
Search WWH ::




Custom Search