Set Default Audio Device?

Aug 25, 2010 at 3:39 AM

This library looks extremely well written, but I can't figure out how to set the default audio device. Can you tell me if/how to do it with your library? Thanks!

Coordinator
Sep 1, 2010 at 3:34 AM

The short answer is that, on Vista and Win7, you cannot set the default device programmatically.

On XP, however, you can use the NativeMethods.waveOutMessage function to send a DRVM_MAPPER_PREFERRED_SET message.

Documentation: http://msdn.microsoft.com/en-us/library/aa909789.aspx