(eventHandle windows.Handle)
| 332 | } |
| 333 | |
| 334 | func (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 | |
| 345 | func (i *_IAudioClient2) Start() error { |
| 346 | r, _, _ := syscall.Syscall(i.vtbl.Start, 1, uintptr(unsafe.Pointer(i)), 0, 0) |
no test coverage detected