MCPcopy
hub / github.com/ebitengine/oto / GetDevicePeriod

Method GetDevicePeriod

api_wasapi_windows.go:243–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241}
242
243func (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
257func (i *_IAudioClient2) GetService(riid *windows.GUID) (unsafe.Pointer, error) {
258 var v unsafe.Pointer

Callers

nothing calls this directly

Calls 2

isAudclntErrFunction · 0.85
_AUDCLNT_ERRTypeAlias · 0.85

Tested by

no test coverage detected