winecoreaudio: Eliminate some unnecessary code.
The WAVE_DIRECTSOUND bit of dwFlags isn't examined, so no point in correcting it.
This commit is contained in:
parent
0c2514bd8f
commit
ff0ff663c3
|
@ -826,11 +826,6 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
|
||||||
return MMSYSERR_ERROR;
|
return MMSYSERR_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((dwFlags & WAVE_DIRECTSOUND) &&
|
|
||||||
!(wwo->caps.dwSupport & WAVECAPS_DIRECTSOUND))
|
|
||||||
/* not supported, ignore it */
|
|
||||||
dwFlags &= ~WAVE_DIRECTSOUND;
|
|
||||||
|
|
||||||
streamFormat.mFormatID = kAudioFormatLinearPCM;
|
streamFormat.mFormatID = kAudioFormatLinearPCM;
|
||||||
streamFormat.mFormatFlags = kLinearPCMFormatFlagIsPacked;
|
streamFormat.mFormatFlags = kLinearPCMFormatFlagIsPacked;
|
||||||
/* FIXME check for 32bits float -> kLinearPCMFormatFlagIsFloat */
|
/* FIXME check for 32bits float -> kLinearPCMFormatFlagIsFloat */
|
||||||
|
|
Loading…
Reference in New Issue