Files
silver_pose/v2/internal/ui/sound_windows.go
T

18 lines
369 B
Go
Raw Normal View History

2026-07-23 14:26:19 +08:00
//go:build windows
package ui
import "golang.org/x/sys/windows"
// MB_ICONHAND selects the system critical-stop sound for a confirmed fall.
const mbIconHand = 0x00000010
var (
user32 = windows.NewLazySystemDLL("user32.dll")
procMessageBeep = user32.NewProc("MessageBeep")
)
func playAlertSound() {
_, _, _ = procMessageBeep.Call(uintptr(mbIconHand))
}