Jump to content
  • Advertisement
Sign in to follow this  
docyoung83

DirectSound - DuplicateSoundBuffer()

This topic is 4843 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I noticed that in the latest DirectX documentation, the DuplicateSoundBuffer() function has been deprecated. The reason cited for this is that duplicate buffers don't share the same memory on most modern systems, thereby defeating the point of this function altogether. However, it still seems like a good idea that if you need multiple copies of the same sound, you should share the data via duplication rather than create a new sound buffer with its own memory for each identical sound. On today's systems, do people typically have enough resources that you can get away with creating and allocating space for each multiple, identical sound without a problem? Or should you still attempt to share memory by manually coding a "DuplicateSoundBuffer()-type" function that will do the trick? I obviously have no clue how I would write such a function if I needed to, so any feedback is appreciated.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!