Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What APIs exist to configure the speaker setup using C# in Windows?

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.

like image 222
Nick Randell Avatar asked Oct 24 '11 07:10

Nick Randell


People also ask

What is configuration of speaker?

Most home-theater content is created for a surround-sound system, usually with five main speakers (front left, center, right, plus two surround speakers at the sides of the listening area) and a subwoofer, which is designated as "5.1." Other configurations include 6.1 (5.1 with one extra surround speaker at the back of ...

How do I change speaker settings?

In Control Panel, double-click the Sounds and Audio Devices icon. On the Audio tab, select a device from the Sound Playback list. Select the Advanced button. Select the Speakers tab.


1 Answers

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/

like image 118
Roman Starkov Avatar answered Oct 10 '22 11:10

Roman Starkov