ahk2_lib
ahk2_lib copied to clipboard
Avoid redundant call
Example:
a := IMMDeviceEnumerator().GetDefaultAudioEndpoint().Activate(IAudioMeterInformation)
if 4 <= c := a.GetMeteringChannelCount() {
p := a.GetChannelsPeakValues(c)
} else {
return
}