Skip to content

A managed API that interfaces with Windows Mixer from winmm.dll

Notifications You must be signed in to change notification settings

PoofImaFox/WindowsMixerControl

Repository files navigation

WindowsMixerControl

This is an interface to the native mixer control API inside of winmm.dll. It is nice and simple and to the point with no bloat. This must be used inside of a 64bit (x64 arch) program to work correctly. I have documented the code with docs found on Microsoft for their API. Microsoft Docs

Example usage:

Mute all input devices;

	var deviceComponent = MixerLineInfoComponentType.Wavein;
	WindowsMixer.MuteAllDevices(deviceComponent);

Enumerate all Input devices;

	var deviceComponent = MixerLineInfoComponentType.Wavein;
	var inputDevices = WindowsMixer.FindAllDevices(deviceComponent).ToArray();

	var deviceEnumeration = string.Join("\n", inputDevices.Select(i =>
     		i.SourceMixerLineInfo.target.productName));

	Console.WriteLine(deviceEnumeration);

See the WindowsMixer.MuteAllDevices() to learn more about how Mixer controls are used.

About

A managed API that interfaces with Windows Mixer from winmm.dll

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages