我需要使用我的 C# 应用程序控制 Windows 10 上的左右扬声器平衡级别。
我能够使用 Windows IAudioEndpointVolume interface 控制扬声器和麦克风的主音量级别通过Audio Manager C# wrapper http://stackoverflow.com/questions/14306048/controling-volume-mixer 中也提到了这一点.
但是,我仍然无法控制 L/R 平衡。我应该使用任何特定的接口(interface)或属性吗?
windows-audio-speaker-balance settings
我正在通过 Visual Studio 15 使用 Windows 10 SDK 和 .NET 4.6.1 框架构建控制台应用程序
最佳答案
使用 IAudioEndpointVolume 中的 SetChannelVolumeLevel(或 SetChannelVolumeLevelScalar)方法。
SetChannelVolumeLevel: https://docs.microsoft.com/en-us/windows/desktop/api/endpointvolume/nf-endpointvolume-iaudioendpointvolume-setchannelvolumelevel
SetChannelVolumeLevelScalar:https://docs.microsoft.com/en-us/windows/desktop/api/endpointvolume/nf-endpointvolume-iaudioendpointvolume-setchannelvolumelevelscalar
关于c# - 使用 C# 在 Windows 10 上控制左右扬声器平衡级别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52589246/