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

Method Stop

api_wasapi_windows.go:356–365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

354}
355
356func (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
367type _IAudioRenderClient struct {
368 vtbl *_IAudioRenderClient_Vtbl

Callers 2

loopMethod · 0.80
CloseMethod · 0.80

Calls 2

isAudclntErrFunction · 0.85
_AUDCLNT_ERRTypeAlias · 0.85

Tested by

no test coverage detected