|
|
| version 1.1, 2003/10/16 17:58:03 | version 1.2, 2003/10/18 07:28:50 |
|---|---|
| Line 9 enum { | Line 9 enum { |
| }; | }; |
| #ifdef SOUND_FM_ASM | #ifdef OPNGENX86 |
| enum { | enum { |
| FMDIV_BITS = 8, | FMDIV_BITS = 8, |
| Line 114 typedef struct { | Line 114 typedef struct { |
| } OPNCH; | } OPNCH; |
| typedef struct { | typedef struct { |
| int dummy; | UINT playchannels; |
| SINT32 feedback2; | |
| SINT32 feedback3; | |
| SINT32 feedback4; | |
| SINT32 outdl; | |
| SINT32 outdc; | |
| SINT32 outdr; | |
| SINT32 calcremain; | |
| BYTE keyreg[OPNCH_MAX]; | |
| } _OPNGEN, *OPNGEN; | } _OPNGEN, *OPNGEN; |
| typedef struct { | |
| SINT32 calc1024; | |
| SINT32 fmvol; | |
| UINT ratebit; | |
| } OPNCFG; | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| extern "C" { | extern "C" { |
| #endif | #endif |
| extern BYTE fm_keyreg[OPNCH_MAX]; | |
| extern OPNCH opnch[OPNCH_MAX]; | |
| void opngen_initialize(UINT rate); | void opngen_initialize(UINT rate); |
| void opngen_setvol(UINT vol); | void opngen_setvol(UINT vol); |