Chapter 2: Introduction to DirectAudio

OVERVIEW
If the longest journey begins with a single footstep, then the greatest audio engine begins with a single tone—specifically, a 440Hz "A" tone that this chapter's sample program will teach you how to produce.This chapter is an introduction to DirectX Audio. If you've dealt with DirectX before, a lot of this will come as no surprise to you—the essentials of getting an audio interface, setting the cooperative mode, and so on, are very similar to their counterparts in Direct3D. The most interesting parts are toward the end, where I explain the basic math behind generating tones.