Microsoft DirectX 8.1 (Visual Basic) |
In the real world, the perception of a sound's position in space is influenced by several factors. Not all of these factors are acoustical; one of the most important is sight. Clues from the sounds themselves include the following:
Although these are not the only cues people use to discern the position of sound, they are the main ones, and they are the factors that have been implemented in the positioning system of DirectX Audio. Hardware optimized for 3-D sound can support other cues as well, such as the effect of the earlobes on the pitch and timing of sounds arriving from different directions. The mathematics behind this effect are known as the head-related transfer function (HRTF).
In most cases, DirectSound creates virtual 3-D effects on two speakers or a set of headphones. However, it will also take advantage of four-channel systems with WDM drivers if the user has selected the surround sound speaker configuration in Control Panel. For more information, see DSBUFFERDESC.