|
|
| version 1.4, 2003/10/22 14:13:25 | version 1.6, 2003/10/27 15:06:31 |
|---|---|
| Line 46 extern SINT32 sintable[]; // ver0.27 | Line 46 extern SINT32 sintable[]; // ver0.27 |
| ((sintable[(((s).freq_cnt + (c)) >> (FREQ_BITS - SIN_BITS)) & \ | ((sintable[(((s).freq_cnt + (c)) >> (FREQ_BITS - SIN_BITS)) & \ |
| (SIN_ENT-1)] * envtable[(e)]) >> (ENVTBL_BIT+SINTBL_BIT-TL_BITS)) | (SIN_ENT-1)] * envtable[(e)]) >> (ENVTBL_BIT+SINTBL_BIT-TL_BITS)) |
| #if 0 | |
| static SINT32 calcrateenvlope(OPNSLOT *slot) { | static SINT32 calcrateenvlope(OPNSLOT *slot) { |
| /* calcrate phage generator */ | /* calcrate phage generator */ |
| Line 81 static SINT32 calcrateenvlope(OPNSLOT *s | Line 81 static SINT32 calcrateenvlope(OPNSLOT *s |
| } | } |
| return(slot->totallevel - env_curve[slot->env_cnt >> ENV_BITS]); | return(slot->totallevel - env_curve[slot->env_cnt >> ENV_BITS]); |
| } | } |
| #endif | |
| static void calcratechannel(OPNCH *ch) { | static void calcratechannel(OPNCH *ch) { |
| Line 156 void SOUNDCALL opngen_getpcm(void *hdl, | Line 157 void SOUNDCALL opngen_getpcm(void *hdl, |
| opngen.outdr = 0; | opngen.outdr = 0; |
| playing = 0; | playing = 0; |
| for (i=0; i<opngen.playchannels; i++) { | for (i=0; i<opngen.playchannels; i++) { |
| if (fm[i].playing) { | if (fm[i].playing & fm[i].outslot) { |
| calcratechannel(fm + i); | calcratechannel(fm + i); |
| playing++; | playing++; |
| } | } |