|
|
| version 1.2, 2004/08/05 11:30:12 | version 1.4, 2004/08/10 09:06:57 |
|---|---|
| Line 4 | Line 4 |
| #include "sndctrl.h" | #include "sndctrl.h" |
| // extern int s_cnt; | |
| // extern DWORD basedclk; | |
| #define OPM_ARRATE 399128L | #define OPM_ARRATE 399128L |
| #define OPM_DRRATE 5514396L | #define OPM_DRRATE 5514396L |
| Line 370 void opmgen_reset(void) { | Line 366 void opmgen_reset(void) { |
| ch++; | ch++; |
| } | } |
| for (i=0x20; i<0x100; i++) { | for (i=0x20; i<0x100; i++) { |
| opmgen_setreg((REG8)i, 0); | opmgen_setreg((REG8)i, 0xff); |
| } | } |
| } | } |
| Line 381 void opmgen_setreg(REG8 reg, REG8 value) | Line 377 void opmgen_setreg(REG8 reg, REG8 value) |
| OPMCH *ch; | OPMCH *ch; |
| OPMSLOT *slot; | OPMSLOT *slot; |
| // if (romeo_exist) { | sound_sync(); |
| // juliet2_YM2151W(reg, value, (basedclk * s_cnt / 1600)); | |
| // return; | |
| // } | |
| c = reg & 7; | c = reg & 7; |
| ch = opmch + c; | ch = opmch + c; |
| slot = ch->slot + fmslot[(reg >> 3) & 3]; | slot = ch->slot + fmslot[(reg >> 3) & 3]; |