Alex Rivera | Logout

C# How to programatically change the playback device

Asked 2009-10-12T15:14:33.177
9

How can I programatically change the default audio device on a vista / win 7 system? Using C# or a Win API call?

Edit
Report

1 Answer

8

The WinMM API should provide the functionality that you request.

You would use the DRVM_MAPPER_PREFERRED_SET message, which is sent with waveOutMessage() function.

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

However, if you are trying to send the waveform sound out yourself, you should look at the WinMM.Net library.

http://winmm.codeplex.com

answered 2009-10-12T15:18:22.263

Your Answer