X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Feng_snd.cpp;h=c8f1598bbe94bd1de7ddb1b2b3ee4cfc9c9193ea;hb=17c039519c1549f519a3166653d1ace911354459;hp=22b64fd3244e76032817cedc94041d182f0e9e00;hpb=2153ae506cd9faaea1e62cfdde4deb4fc97a384e;p=16.git diff --git a/src/eng_snd.cpp b/src/eng_snd.cpp index 22b64fd3..c8f1598bb 100644 --- a/src/eng_snd.cpp +++ b/src/eng_snd.cpp @@ -1,14 +1,14 @@ #include "src\eng_snd.h" #include - + #ifdef __cplusplus /* Functions must be declared C style */ extern "C" { #endif -extern void interrupt far newkb(void); -extern int keyp(byte c); +extern void interrupt far newkb(void); +extern int keyp(byte c); #ifdef __cplusplus } -#endif +#endif namespace engine { @@ -18,12 +18,13 @@ namespace engine { //==== std::cout << "SOUND HERE" << std::endl; if(keyp(44)){ FMKeyOn(0, 0x106, 4); - }else if(!keyp(44)) FMKeyOff(0); + }//else if(!keyp(44)) FMKeyOff(0); + if(keyp(KEY_A)) FMKeyOff(0); if(keyp(KEY_X)){ sound(440); delay(100); nosound(); - }else if(keyp(KEY_X+0x80)) nosound(); + }else if(keyp(KEY_X+0x80)) nosound(); } -} \ No newline at end of file +}