Manipulating the Listener

The Listener3D object is created and used much like the Buffer3D object is. However, instead of manipulating the actual sound source (of which there can be many), you are dealing directly with the listener, of which there is only one per device. For this reason, you cannot use a SecondaryBuffer when creating a listener object; you can only use a Buffer object, and then only if it is a primary buffer.

Before you write the code using the listener object, you should take a look at the properties and settings you can modify on it, much like you did with the 3D buffer object. You will find these properties in Table 14.3.

Table 14.3. Listener3D Properties
PROPERTYDESCRIPTION
CommitDeferredSettingsIf any of the settings were ...

Get Managed DirectX® 9 Kick Start: Graphics and Game Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.