// Here is where we try to determine the best format to use with the device. If the client if wanting exclusive mode, first try finding the best format for that. If this fails, fall back to shared mode.
result=MAL_FORMAT_NOT_SUPPORTED;
if(pConfig->preferExclusiveMode){
if(pConfig->shareMode==mal_share_mode_exclusive){
#ifdef MAL_WIN32_DESKTOP
// In exclusive mode on desktop we always use the backend's native format.