Sign in to follow this  
  • entries
    5
  • comments
    10
  • views
    3518

It's time for 3D sound...

Sign in to follow this  
AtomicWedgie

264 views

This weekend I enabled 3D sound in Epiphany. I followed three good articles on DirectSound implementation using Managed DirectX 1.1...

http://www.riemers.net/eng/Tutorials/DirectX/Csharp/Series2/tut15.php
http://www.pluralsight.com/wiki/default.aspx/Craig.DirectX/DirectSoundTutorialIndex.html
http://blogs.msdn.com/coding4fun/archive/2006/11/06/999786.aspx

After getting everything working on my laptop I decided to test it against my wife's desktop. This is where I ran into problems. Although sound played fine on my laptop - sound on my wife's desktop either was not played or was not played in 3D. Very odd.

After searching MSDN and these forums and trying various things I came across a solution. When creating the SecondaryBuffer for the sound if I explicitly set the "LocateInSoftware" flag to "true" 3D sound worked flawlessly!

According to an MSDN article http://msdn2.microsoft.com/en-us/library/bb280909.aspx, this forces sound mixing to be performed by software and not the sound card hardware.

So, apparently not all sound cards are created equal...

Until next time....



Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now