Direct Sound FAQ

Home | Up | Search | X-Zone News | Services | Book Support | Links | Feedback | Smalltalk MT | The Scrapyard | Technical Articles


X-Zone's DirectX FAQ
DirectSound Issues

Q. If I wish to play overlapping copies of a sound, do I have to load multiple copies?

While this will require multiple DirectSoundBuffer objects, you only need to perform the load once.  You can make duplicate objects with the IDirectSound::DuplicateSoundBuffer function.  These objects will reference the same memory buffer, so no additional memory will be required.  The playback parameters for each object may be set independently.

Back to the Top    Back to Main Index

Q. Why, when compiling in DirectX 7, does using the DSBCAPS_CTRLDEFAULT cause an error?

This flag has been removed to encourage utilizing only those flags that are needed.  This minimizes the resources needed, and in some cases may provide better selection of appropriate devices.  This flag was previously defined as DSBCAPS_CTRLPAN | DSBCAPS_CTRLVOLUME | DSBCAPS_CTRLFREQUENCY.

Back to the Top    Back to Main Index

This site, created by DirectX MVP Robert Dunlop and aided by the work of other volunteers, provides a free on-line resource for DirectX programmers.

Special thanks to WWW.MVPS.ORG, for providing a permanent home for this site.

Visitors Since 1/1/2000: Hit Counter
Last updated: 07/26/05.