(pProperties *_AudioClientProperties)
| 320 | } |
| 321 | |
| 322 | func (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 | |
| 334 | func (i *_IAudioClient2) SetEventHandle(eventHandle windows.Handle) error { |
| 335 | r, _, _ := syscall.Syscall(i.vtbl.SetEventHandle, 2, uintptr(unsafe.Pointer(i)), uintptr(eventHandle), 0) |
no test coverage detected