#include "src\eng_snd.h"\r
#include <iostream>\r
+
+#ifdef __cplusplus /* Functions must be declared C style */\r
+extern "C" {\r
+#endif\r
+extern void interrupt far newkb(void);
+extern int keyp(byte c);
+#ifdef __cplusplus\r
+}\r
+#endif
\r
namespace engine {\r
\r
{\r
//sound here\r
//==== std::cout << "SOUND HERE" << std::endl;\r
- //soundtest();
+ if(keyp(44)){\r
+ FMKeyOn(0, 0x106, 4);\r
+ }else if(!keyp(44)) FMKeyOff(0);\r
+ if(keyp(KEY_X)){\r
+ sound(440);\r
+ delay(100);\r
+ nosound();\r
+ }else if(keyp(KEY_X+0x80)) nosound();
}\r
\r
}
\ No newline at end of file