(numFramesWritten uint32, dwFlags uint32)
| 395 | } |
| 396 | |
| 397 | func (i *_IAudioRenderClient) ReleaseBuffer(numFramesWritten uint32, dwFlags uint32) error { |
| 398 | r, _, _ := syscall.Syscall(i.vtbl.ReleaseBuffer, 3, uintptr(unsafe.Pointer(i)), uintptr(numFramesWritten), uintptr(dwFlags)) |
| 399 | if uint32(r) != uint32(windows.S_OK) { |
| 400 | if isAudclntErr(uint32(r)) { |
| 401 | return fmt.Errorf("oto: IAudioRenderClient::ReleaseBuffer failed: %w", _AUDCLNT_ERR(r)) |
| 402 | } |
| 403 | return fmt.Errorf("oto: IAudioRenderClient::ReleaseBuffer failed: HRESULT(%d)", uint32(r)) |
| 404 | } |
| 405 | return nil |
| 406 | } |
| 407 | |
| 408 | type _IMMDevice struct { |
| 409 | vtbl *_IMMDevice_Vtbl |
no test coverage detected