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

Method Start

api_wasapi_windows.go:345–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

343}
344
345func (i *_IAudioClient2) Start() error {
346 r, _, _ := syscall.Syscall(i.vtbl.Start, 1, uintptr(unsafe.Pointer(i)), 0, 0)
347 if uint32(r) != uint32(windows.S_OK) {
348 if isAudclntErr(uint32(r)) {
349 return fmt.Errorf("oto: IAudioClient2::Start failed: %w", _AUDCLNT_ERR(r))
350 }
351 return fmt.Errorf("oto: IAudioClient2::Start failed: HRESULT(%d)", uint32(r))
352 }
353 return nil
354}
355
356func (i *_IAudioClient2) Stop() (bool, error) {
357 r, _, _ := syscall.Syscall(i.vtbl.Stop, 1, uintptr(unsafe.Pointer(i)), 0, 0)

Callers 1

startOnCOMThreadMethod · 0.80

Calls 2

isAudclntErrFunction · 0.85
_AUDCLNT_ERRTypeAlias · 0.85

Tested by

no test coverage detected