morphx666 / CoreAudio

Windows CoreAudio wrapper for .NET
https://whenimbored.xfx.net/2011/01/core-audio-for-net/
MIT License
95 stars 20 forks source link

MMDevice: renaming FriendlyName to DeviceInterfaceFriendlyName and adding DeviceFriendlyName #13

Closed Pyroluk closed 2 years ago

Pyroluk commented 2 years ago

One audio device interface can have several audio devices connected to it.

For example, my Realtek onboard sound chip has two output devices:

  1. Realtek Digital Output (Realtek High Definition Audio)
  2. Speakers (Realtek High Definition Audio)

Without this fix, it is not possible to differentiate between the them by specifying the device's friendly name. FriendlyName was "Realtek High Definition Audio" for both devices.

I renamed FriendlyName to DeviceInterfaceFriendlyName and added DeviceFriendlyName according to Microsoft’s specification: https://docs.microsoft.com/en-us/windows/win32/coreaudio/device-properties

Cheers!