Frosthaven / voicemeeter-windows-volume

Tray app that allows you to sync windows volume and mute state to Voicemeeter volume controls
265 stars 9 forks source link

Use IAudioEndpointVolumeCallback instead of continuous IAudioEndpointVolume polling #46

Open not-holar opened 11 months ago

not-holar commented 11 months ago

The Windows API has a callback interface made specifically for listening to Volume changes https://learn.microsoft.com/en-us/windows/win32/api/endpointvolume/nn-endpointvolume-iaudioendpointvolumecallback, IMO it would be much more efficient to use it instead of always polling in the background