enableWindowCapture property
Whether to capture window sounds. When true, window sounds will be captured if the capture source is a window; otherwise, system sounds will be captured if the capture source is the screen or if false. When true, the excludeProcessID parameter will be ignored. (only for Windows 10 2004 and above versions)
Implementation
bool enableWindowCapture;