setWaveFormatEx method
Throws a WindowsException on failure.
Implementation
@pragma('vm:prefer-inline')
void setWaveFormatEx(ISpeechWaveFormatEx? speechWaveFormatEx) {
final hr$ = HRESULT(
_SetWaveFormatExFn(ptr, speechWaveFormatEx?.ptr ?? nullptr),
);
if (hr$.isError) throw WindowsException(hr$);
}