|
|
| version 1.1, 2004/08/01 05:31:31 | version 1.2, 2004/08/05 11:30:12 |
|---|---|
| Line 2 | Line 2 |
| #include <math.h> | #include <math.h> |
| #include "sound.h" | #include "sound.h" |
| #include "sndctrl.h" | #include "sndctrl.h" |
| #include "juliet.h" | |
| #include "x1f.h" | |
| extern int s_cnt; | // extern int s_cnt; |
| extern DWORD basedclk; | // extern DWORD basedclk; |
| PSGGENCFG psggencfg; | PSGGENCFG psggencfg; |
| static const UINT8 psggen_deftbl[0x10] = | const UINT8 psggen_deftbl[0x10] = |
| {0, 0, 0, 0, 0, 0, 0, 0xbf, 0, 0, 0, 0, 0, 0, 0xff, 0xff}; | {0, 0, 0, 0, 0, 0, 0, 0xbf, 0, 0, 0, 0, 0, 0, 0xff, 0xff}; |
| static const UINT8 psgenv_pat[16] = { | static const UINT8 psgenv_pat[16] = { |
| Line 93 void psggen_setreg(PSGGEN psg, REG8 reg, | Line 91 void psggen_setreg(PSGGEN psg, REG8 reg, |
| UINT freq; | UINT freq; |
| UINT ch; | UINT ch; |
| x1f_psg(reg, value); | // if (romeo_exist) { |
| if (romeo_exist) { | // juliet2_YMF288A(reg, value, (basedclk * s_cnt / 1600)); |
| juliet2_YMF288A(reg, value, (basedclk * s_cnt / 1600)); | // return; |
| return; | // } |
| } | |
| reg &= 15; | reg &= 15; |
| // if (reg < 14) { | // if (reg < 14) { |