#include "src\eng_snd.h"\r
#include <iostream>\r
\r
+#ifdef __cplusplus /* Functions must be declared C style */\r
+extern "C" {\r
+#endif\r
+extern void interrupt far newkb(void);\r
+extern int keyp(byte c);\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
namespace engine {\r
\r
void do_sound()\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_A)) 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
\r
-}
\ No newline at end of file
+}\r