(frequency, duration, loop)
Beeping thread target.
Beeping thread target.
Beeping thread target .
def _beep(frequency, duration, loop):
        """Beeping thread target."""
        if frequency < 37 or frequency >= 32767:
            fcntl.ioctl(sys.stdout, KIOCSOUND, 0)
        else:
            fcntl.ioctl(sys.stdout, KIOCSOUND, int(CLOCK_TICK_RATE // frequency))
        time.sleep(duration)
        if not loop:
            fcntl.ioctl(sys.stdout, KIOCSOUND, 0)
def _beep ( frequency , duration , loop ) : if frequency < 37 or frequency >= 32767 : fcntl . ioctl ( sys . stdout , KIOCSOUND , 0 ) else : fcntl . ioctl ( sys . stdout , KIOCSOUND , int ( CLOCK_TICK_RATE // frequency ) ) time . sleep ( duration ) if not loop : fcntl . ioctl ( sys . stdout , KIOCSOUND , 0 )