|
|
| version 1.1, 2003/10/16 17:59:37 | version 1.3, 2003/11/28 17:44:19 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "commng.h" | #include "commng.h" |
| #include "cmmidi.h" | #include "cmver.h" |
| // ---- non connect | // ---- non connect |
| Line 25 static BYTE ncgetstat(COMMNG self) { | Line 25 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 34 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 42 static const _COMMNG com_nc = { |
| // ---- | // ---- |
| void commng_initialize(void) { | |
| cmvermouth_initialize(); | |
| } | |
| COMMNG commng_create(UINT device) { | COMMNG commng_create(UINT device) { |
| COMMNG ret; | COMMNG ret; |
| ret = NULL; | ret = NULL; |
| if (device == COMCREATE_MPU98II) { | if (device == COMCREATE_MPU98II) { |
| ret = cmmidi_create(); | ret = cmvermouth_create(); |
| } | } |
| if (ret == NULL) { | if (ret == NULL) { |
| ret = (COMMNG)&com_nc; | ret = (COMMNG)&com_nc; |