| version 1.1.1.1, 2003/10/16 17:58:01 | version 1.5, 2003/11/14 05:26:53 | 
| Line 5 | Line 5 | 
 | #include        "amd98.h" | #include        "amd98.h" | 
 | #include        "sound.h" | #include        "sound.h" | 
 | #include        "fmboard.h" | #include        "fmboard.h" | 
 | #include        "beep.h" |  | 
 | #include        "s98.h" |  | 
 |  |  | 
 |  |  | 
 | static void setamd98event(BOOL absolute) { | static void setamd98event(BOOL absolute) { | 
 |  |  | 
 | SINT32  cnt; | SINT32  cnt; | 
 |  |  | 
| if (pit.value[3].w > 8) {                                       // º¬µò¤Ê¤· | if (pit.value[3] > 8) {                                         // º¬µò¤Ê¤· | 
| cnt = pc.multiple * pit.value[3].w; | cnt = pc.multiple * pit.value[3]; | 
 | } | } | 
 | else { | else { | 
 | cnt = pc.multiple << 16; | cnt = pc.multiple << 16; | 
 | } | } | 
 |  | if (pc.baseclock == PCBASECLOCK25) { | 
 |  | cnt = cnt * 16 / 13;                                    // cnt * 2457600 / 1996800 | 
 |  | } | 
 | nevent_set(NEVENT_MUSICGEN, cnt, amd98int, absolute); | nevent_set(NEVENT_MUSICGEN, cnt, amd98int, absolute); | 
 | } | } | 
 |  |  | 
| Line 113  static void IOOUTCALL amd_ode(UINT port, | Line 114  static void IOOUTCALL amd_ode(UINT port, | 
 |  |  | 
 | // ---- | // ---- | 
 |  |  | 
 |  | static void psgpanset(PSGGEN psg) { | 
 |  |  | 
 |  | psggen_setpan(psg, 0, 1); | 
 |  | psggen_setpan(psg, 1, 0); | 
 |  | psggen_setpan(psg, 2, 2); | 
 |  | } | 
 |  |  | 
 | void amd98_bind(void) { | void amd98_bind(void) { | 
 |  |  | 
 |  | psgpanset(&psg1); | 
 |  | psgpanset(&psg2); | 
 |  | psgpanset(&psg3); | 
 | sound_streamregist(&psg1, (SOUNDCB)psggen_getpcm); | sound_streamregist(&psg1, (SOUNDCB)psggen_getpcm); | 
 | sound_streamregist(&psg2, (SOUNDCB)psggen_getpcm); | sound_streamregist(&psg2, (SOUNDCB)psggen_getpcm); | 
 | sound_streamregist(&psg3, (SOUNDCB)psggen_getpcm); | sound_streamregist(&psg3, (SOUNDCB)psggen_getpcm); |