()
| 354 | } |
| 355 | |
| 356 | func (i *_IAudioClient2) Stop() (bool, error) { |
| 357 | r, _, _ := syscall.Syscall(i.vtbl.Stop, 1, uintptr(unsafe.Pointer(i)), 0, 0) |
| 358 | if uint32(r) != uint32(windows.S_OK) && uint32(r) != uint32(windows.S_FALSE) { |
| 359 | if isAudclntErr(uint32(r)) { |
| 360 | return false, fmt.Errorf("oto: IAudioClient2::Stop failed: %w", _AUDCLNT_ERR(r)) |
| 361 | } |
| 362 | return false, fmt.Errorf("oto: IAudioClient2::Stop failed: HRESULT(%d)", uint32(r)) |
| 363 | } |
| 364 | return uint32(r) == uint32(windows.S_OK), nil |
| 365 | } |
| 366 | |
| 367 | type _IAudioRenderClient struct { |
| 368 | vtbl *_IAudioRenderClient_Vtbl |
no test coverage detected