MCPcopy
hub / github.com/ebitengine/oto / SetClientProperties

Method SetClientProperties

api_wasapi_windows.go:322–332  ·  view source on GitHub ↗
(pProperties *_AudioClientProperties)

Source from the content-addressed store, hash-verified

320}
321
322func (i *_IAudioClient2) SetClientProperties(pProperties *_AudioClientProperties) error {
323 r, _, _ := syscall.Syscall(i.vtbl.SetClientProperties, 2, uintptr(unsafe.Pointer(i)), uintptr(unsafe.Pointer(pProperties)), 0)
324 runtime.KeepAlive(pProperties)
325 if uint32(r) != uint32(windows.S_OK) {
326 if isAudclntErr(uint32(r)) {
327 return fmt.Errorf("oto: IAudioClient2::SetClientProperties failed: %w", _AUDCLNT_ERR(r))
328 }
329 return fmt.Errorf("oto: IAudioClient2::SetClientProperties failed: HRESULT(%d)", uint32(r))
330 }
331 return nil
332}
333
334func (i *_IAudioClient2) SetEventHandle(eventHandle windows.Handle) error {
335 r, _, _ := syscall.Syscall(i.vtbl.SetEventHandle, 2, uintptr(unsafe.Pointer(i)), uintptr(eventHandle), 0)

Callers 1

startOnCOMThreadMethod · 0.80

Calls 2

isAudclntErrFunction · 0.85
_AUDCLNT_ERRTypeAlias · 0.85

Tested by

no test coverage detected