This project has moved and is read-only. For the latest updates, please go here.

3D audio support?

May 25, 2011 at 12:27 PM

Is there any plan to support 3D by using DirectSoundOut? I'm being just curious, as I've been able to play some 3D audio by using the managed Microsoft.DirectX assemblies, but would prefer to use NAudio.

I've been taking a quick glance and I guess it's possible adding the missing structures and DLLImports, but I've never touched DirectX nor DirectSound, and I'm not an expert in this area, nothing that couldn't be solved with the needed time, sadly I don't have much of it, although it's caught my interest.

As I said, I'm not demanding anything, just asking.

May 25, 2011 at 4:46 PM

I'd never heard of 3D audio support in DirectSoundOut to be honest, but it sounds interesting. One of the goals behind NAudio is to make possible in .NET everything audio-related you can do with Windows APIs, so it would be a good fit. However, I have higher priorities in the short-term (such as Media Foundation Transforms and Silverlight support), so ideally this would be something contributed by the community.


May 25, 2011 at 5:14 PM
Edited May 25, 2011 at 5:16 PM

Thanks for the info Mark.

From what I've read, 3D Audio can be enabled by changing how BufferDescription is created and adding some new methods (well, and properties and constants...). Some info here:

I'm talking just for giving out some info. Your reply is already what I was looking for.

If I manage to get some spare time anytime soon, I may look into it myself.