Closed LiorBanai closed 1 year ago
found it.
@LiorBanai maybe disclose your solution for future reference by others with a similar issue?
@mvkalsbeek sure. something like this:
var devEnum = new MMDeviceEnumerator(Guid.NewGuid());
defaultVUDevice = devEnum.GetDefaultAudioEndpoint(DataFlow.Render, Role.Multimedia);
// Read the current volume peak levels of the stereo speakers...
var dAvg = ((double)defaultVUDevice.AudioMeterInformation.PeakValues[0] +
(double)defaultVUDevice.AudioMeterInformation.PeakValues[1]) / 2.0;
Hi, Is there a way to get the peak sound value of the currently played sounds in the system? let say there is youtube video in the background. Can I get peak value when I sample it (for example via timer each 1 second)