6

I've looked around many different places, but can't seem to find a straighforward way of doing this.

I have a number of sound cards in Windows 7 and output sound to my AVR amp using HDMI. The problem I have is that when the amp switches off, it causes windows to lose the speaker configuration.

So what I want to do is write a small utility that will reconfigure the speakers to be 5.1 surround sound. I'm sure there is a way to do it, but I've no idea where to start as there seem to be many different types of API.

Nick Randell
  • 17,805
  • 18
  • 59
  • 74
  • I appear to have voted to close this in error, but I can find no way of undoing my mistake. Sorry! – Jeff Foster Oct 24 '11 at 08:14
  • 1
    Can you describe how you currently do this manually? There are some proprietary methods for certain sound devices, and rather than lead you down the wrong path, it would be helpful if you could be specific about what you do manually, and the expected outcome of your code. – Brad Oct 24 '11 at 15:33
  • Today I go to the system tray, right click on the speaker icon, click playback devices, then right click on the AVR (HDMI) device and select configure speakers, select 5.1, do next, next, next and it starts working. – Nick Randell Oct 24 '11 at 17:57

1 Answers1

2

I believe nowadays these things are controlled via Windows Core Audio - one of the major new features of Windows Vista that nobody notices because it's almost entirely under the hood.

There is a .NET wrapper that claims to be stable: http://netcoreaudio.codeplex.com/

Roman Starkov
  • 59,298
  • 38
  • 251
  • 324