How to get Speaker Volume Level? [duplicate]
问题 This question already has an answer here : Controlling Volume Mixer (1 answer) Closed last year . How can I get the speaker volume in C#? speaker volume image And show it in my app? App image 回答1: Using NAudio, you could do the following: using NAudio.CoreAudioApi; ..... // download NAudio.dll from https://github.com/naudio/NAudio/releases // and add it as Reference to the project var devEnum = new MMDeviceEnumerator(); var defaultDevice = devEnum.GetDefaultAudioEndpoint(DataFlow.Render, Role