X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fsstlinux.c;fp=src%2Fsstlinux.c;h=0000000000000000000000000000000000000000;hp=422c30593a1e5df6e88e4bfbccd0b2b2f0252933;hb=1dc3e2e56bd836aa1c9d45417222b4fed6d34c0e;hpb=16a5bbd86d12644c1a613e61e990f76b16a567f0 diff --git a/src/sstlinux.c b/src/sstlinux.c deleted file mode 100644 index 422c305..0000000 --- a/src/sstlinux.c +++ /dev/null @@ -1,30 +0,0 @@ -#include "config.h" -#include "sstlinux.h" - -#ifdef HAVE_LINUX_KD_H - -#include -#include -#include -#include - -static int fd = 0; -#endif - -void sound(unsigned int freq) -{ -#ifdef HAVE_LINUX_KD_H - if (fd==0) - fd=open("/dev/console", O_RDONLY); - if (fd>0) - ioctl(fd, KDMKTONE, 1193180/freq + (0xFFFF<<16)); -#endif -} - -void nosound(void) -{ -#ifdef HAVE_LINUX_KD_H - if(fd>0) - ioctl(fd, KDMKTONE, 0); -#endif -}