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

Method SetEventHandle

api_wasapi_windows.go:334–343  ·  view source on GitHub ↗
(eventHandle windows.Handle)

Source from the content-addressed store, hash-verified

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)
336 if uint32(r) != uint32(windows.S_OK) {
337 if isAudclntErr(uint32(r)) {
338 return fmt.Errorf("oto: IAudioClient2::SetEventHandle failed: %w", _AUDCLNT_ERR(r))
339 }
340 return fmt.Errorf("oto: IAudioClient2::SetEventHandle failed: HRESULT(%d)", uint32(r))
341 }
342 return nil
343}
344
345func (i *_IAudioClient2) Start() error {
346 r, _, _ := syscall.Syscall(i.vtbl.Start, 1, uintptr(unsafe.Pointer(i)), 0, 0)

Callers 1

startOnCOMThreadMethod · 0.80

Calls 2

isAudclntErrFunction · 0.85
_AUDCLNT_ERRTypeAlias · 0.85

Tested by

no test coverage detected