(numFramesRequested uint32)
| 378 | } |
| 379 | |
| 380 | func (i *_IAudioRenderClient) GetBuffer(numFramesRequested uint32) (*byte, error) { |
| 381 | var data *byte |
| 382 | r, _, _ := syscall.Syscall(i.vtbl.GetBuffer, 3, uintptr(unsafe.Pointer(i)), uintptr(numFramesRequested), uintptr(unsafe.Pointer(&data))) |
| 383 | if uint32(r) != uint32(windows.S_OK) { |
| 384 | if isAudclntErr(uint32(r)) { |
| 385 | return nil, fmt.Errorf("oto: IAudioRenderClient::GetBuffer failed: %w", _AUDCLNT_ERR(r)) |
| 386 | } |
| 387 | return nil, fmt.Errorf("oto: IAudioRenderClient::GetBuffer failed: HRESULT(%d)", uint32(r)) |
| 388 | } |
| 389 | return data, nil |
| 390 | } |
| 391 | |
| 392 | func (i *_IAudioRenderClient) Release() uint32 { |
| 393 | r, _, _ := syscall.Syscall(i.vtbl.Release, 1, uintptr(unsafe.Pointer(i)), 0, 0) |
no test coverage detected