mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
15 lines
322 B
Python
15 lines
322 B
Python
import os
|
|
is_nt = True if os.name == "nt" else False
|
|
|
|
def PlaySound(*args, **kwargs): pass
|
|
SND_FILENAME = SND_ASYNC = 1
|
|
|
|
if is_nt:
|
|
import winsound
|
|
PlaySound = winsound.PlaySound
|
|
SND_FILENAME = winsound.SND_FILENAME
|
|
SND_ASYNC = winsound.SND_ASYNC
|
|
|
|
def clamp(x, low, high):
|
|
return max(low, min(x, high))
|