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

Method GetId

api_wasapi_windows.go:435–442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

433}
434
435func (i *_IMMDevice) GetId() (string, error) {
436 var strId *uint16
437 r, _, _ := syscall.Syscall(i.vtbl.GetId, 2, uintptr(unsafe.Pointer(i)), uintptr(unsafe.Pointer(&strId)), 0)
438 if uint32(r) != uint32(windows.S_OK) {
439 return "", fmt.Errorf("oto: IMMDevice::GetId failed: HRESULT(%d)", uint32(r))
440 }
441 return windows.UTF16PtrToString(strId), nil
442}
443
444func (i *_IMMDevice) Release() {
445 syscall.Syscall(i.vtbl.Release, 1, uintptr(unsafe.Pointer(i)), 0, 0)

Callers 2

isDeviceSwitchedMethod · 0.80
startOnCOMThreadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected