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.