Q:

How can I play sound out of just one speaker in C++?

I have a audio card that supports multiple speakers (Creative SB X-Fi).  What I am trying to do is write a program in C++ (Windows 7 Environment, Visual Studio IDE) that will play a given mono wav file to one of the 4 speakers I have hooked up.  Can anybody point me in the correct direction as to specific functions that will accomplish this aim?  My attempt to google a solution has not yielded fruit. Thanks.

A:

You can play sound through a set of surround sound speakers using DirectSound.  See the MSDN page "Sounds in 3-D".

