()
| 241 | } |
| 242 | |
| 243 | func (i *_IAudioClient2) GetDevicePeriod() (_REFERENCE_TIME, _REFERENCE_TIME, error) { |
| 244 | var defaultDevicePeriod _REFERENCE_TIME |
| 245 | var minimumDevicePeriod _REFERENCE_TIME |
| 246 | r, _, _ := syscall.Syscall(i.vtbl.GetDevicePeriod, 3, uintptr(unsafe.Pointer(i)), |
| 247 | uintptr(unsafe.Pointer(&defaultDevicePeriod)), uintptr(unsafe.Pointer(&minimumDevicePeriod))) |
| 248 | if uint32(r) != uint32(windows.S_OK) { |
| 249 | if isAudclntErr(uint32(r)) { |
| 250 | return 0, 0, fmt.Errorf("oto: IAudioClient2::GetDevicePeriod failed: %w", _AUDCLNT_ERR(r)) |
| 251 | } |
| 252 | return 0, 0, fmt.Errorf("oto: IAudioClient2::GetDevicePeriod failed: HRESULT(%d)", uint32(r)) |
| 253 | } |
| 254 | return defaultDevicePeriod, minimumDevicePeriod, nil |
| 255 | } |
| 256 | |
| 257 | func (i *_IAudioClient2) GetService(riid *windows.GUID) (unsafe.Pointer, error) { |
| 258 | var v unsafe.Pointer |
nothing calls this directly
no test coverage detected