/* * (C) Copyright 1992, ..., 2005 the "DOSEMU-Development-Team". * * for details see file COPYING in the DOSEMU distribution */ #include "config.h" #include "speaker.h" /* * Console Speaker Emulation * ============================================================================= */ #include #ifdef __linux__ #include #endif void console_speaker_on(void *gp, unsigned ms, unsigned short period) { ioctl((int)gp, KDMKTONE, (unsigned) ((ms & 0xffff) << 16) | (period & 0xffff)); } void console_speaker_off(void *gp) { ioctl((int)gp, KDMKTONE, 0); }