Diff for /np2/macosx/commng.cpp between versions 1.1.1.1 and 1.5

version 1.1.1.1, 2003/10/16 17:59:37 version 1.5, 2004/03/02 23:23:06
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
   #include        "np2.h"
 #include        "commng.h"  #include        "commng.h"
   #include        "cmjasts.h"
 #include        "cmmidi.h"  #include        "cmmidi.h"
   
   
 // ---- non connect  // ---- non connect
   
 static UINT ncread(COMMNG self, BYTE *data) {  static UINT ncread(COMMNG self, BYTE *data) {
Line 25  static BYTE ncgetstat(COMMNG self) { Line 26  static BYTE ncgetstat(COMMNG self) {
         return(0xf0);          return(0xf0);
 }  }
   
 static UINT ncmsg(COMMNG self, UINT msg, long param) {  static long ncmsg(COMMNG self, UINT msg, long param) {
   
         (void)self;          (void)self;
         (void)msg;          (void)msg;
Line 34  static UINT ncmsg(COMMNG self, UINT msg, Line 35  static UINT ncmsg(COMMNG self, UINT msg,
 }  }
   
 static void ncrelease(COMMNG self) {  static void ncrelease(COMMNG self) {
   
         (void)self;  
 }  }
   
 static const _COMMNG com_nc = {  static const _COMMNG com_nc = {
Line 44  static const _COMMNG com_nc = { Line 43  static const _COMMNG com_nc = {
   
 // ----  // ----
   
   void commng_initialize(void) {
   
           cmmidi_initailize();
   }
   
 COMMNG commng_create(UINT device) {  COMMNG commng_create(UINT device) {
   
         COMMNG  ret;          COMMNG  ret;
           COMCFG* cfg;
           
         ret = NULL;          ret = NULL;
         if (device == COMCREATE_MPU98II) {          switch(device) {
                 ret = cmmidi_create();                  case COMCREATE_PRINTER:
                           if (np2oscfg.jastsnd) {
                                   ret = cmjasts_create();
                           }
                           break;
   
                   case COMCREATE_MPU98II:
                           cfg = &np2oscfg.mpu;;
                           ret = cmmidi_create(cfg->mout, cfg->min, cfg->mdl);
                           if (ret) {
                                   ret->msg(ret, COMMSG_MIMPIDEFFILE, (long)cfg->def);
                                   ret->msg(ret, COMMSG_MIMPIDEFEN, (long)cfg->def_en);
                           }
                           break;
   
                   default:
                           break;
         }          }
         if (ret == NULL) {          if (ret == NULL) {
                 ret = (COMMNG)&com_nc;                  ret = (COMMNG)&com_nc;

Removed from v.1.1.1.1  
changed lines
  Added in v.1.5


RetroPC.NET-CVS <cvs@retropc.net>