On Mon Aug 21 06:32:45 2023 +0000, Huw Davies wrote:
Perhaps something like this is clearer:
if (exclusive) { /* This driver does not support exclusive mode. */ if (params->result == S_OK) params->result = params->flow == eCapture ? AUDCLNT_E_UNSUPPORTED_FORMAT : AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED; else if (params->result == S_FALSE) params->result = AUDCLNT_E_UNSUPPORTED_FORMAT; }
Yes, performance should be the same anyway.