setWaveFormatEx method

void setWaveFormatEx(
  1. ISpeechWaveFormatEx? speechWaveFormatEx
)

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$);
}