GetCaptureDeviceInfo using wrong filter for non-default DeviceIndex

I was trying to implement a feature in editor that allowed our developers to pick a recording device and record audio using that device instead of using the default device, however system was failing to pick the correct input device after selection. It looks like in `FAudioCaptureWasapiStream::GetCaptureDeviceInfo`, `eAll` is used to retrieve the device with the index which seems to be wrong as other functions around this seems to be using `eCapture`. For example the matching function to get list of the available devices before it; `GetCaptureDevicesAvailable` returns the list of devices using `eCapture` filter, then using the index of the device in this list results in wrong device to be returned.

Proposed fix: change the filter used in `FAudioCaptureWasapiStream::GetCaptureDeviceInfo` to be `eCapture`.

Hi Turhan,

Thank you for raising this. This is due to an issue related to inconsistent use of enumerations when iterating over capture devices. We have done some investigation and are working on a fix, but in the meantime you can resolve this with a one line change in AudioCaptureWasapi.cpp:

// before
CaptureDevice.GetDeviceIdFromIndex(DeviceIndex, eAll, DeviceId);
 
// after
CaptureDevice.GetDeviceIdFromIndex(DeviceIndex, eCapture, DeviceId);
 

Hope this helps.