Mercurial > pmdwin
diff fmgen/psg.c @ 3:8ad174416431
Convert the last EUC-JP file to UTF-8.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 21 May 2013 10:45:37 +0200 |
parents | c55ea9478c80 |
children |
line wrap: on
line diff
--- a/fmgen/psg.c +++ b/fmgen/psg.c @@ -46,7 +46,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI #define Min(a,b) ((a<b)?a:b) // --------------------------------------------------------------------------- -// ¥Æ¡¼¥Ö¥ë +// テーブル // int EmitTable[0x20] = { -1, }; uint enveloptable[16][64] = { 0, }; @@ -75,7 +75,7 @@ void PSGSetClock(PSG *psg, uint32_t cloc psg->tperiodbase = (uint32_t)((1 << toneshift ) / 4.0f * clock / rate); psg->eperiodbase = (uint32_t)((1 << envshift ) / 4.0f * clock / rate); - // ³Æ¥Ç¡¼¥¿¤Î¹¹¿· + // å„データã®æ›´æ–° int tmp; tmp = ((psg->reg[0] + psg->reg[1] * 256) & 0xfff); psg->speriod[0] = tmp ? psg->tperiodbase / tmp : psg->tperiodbase; @@ -90,7 +90,7 @@ void PSGSetClock(PSG *psg, uint32_t cloc } // --------------------------------------------------------------------------- -// ¥¨¥ó¥Ù¥í¡¼¥×ÇÈ·Á¥Æ¡¼¥Ö¥ë +// エンベãƒãƒ¼ãƒ—波形テーブル // static uint8_t table3[4] = { 0, 1, -1, 0 }; void MakeEnvelopTable(void) @@ -283,7 +283,7 @@ void PSGMix(PSG *psg, Sample* dest, uint #define SCOUNT(ch) (psg->scount[ch] >> toneshift) if (p1 != &env && p2 != &env && p3 != &env) { - // ¥Î¥¤¥ºÍ¤ê + // ノイズ有り for (i=0; i<nsamples; i++) { psg->ncount++; if(psg->ncount >= psg->nperiod) { @@ -310,7 +310,7 @@ void PSGMix(PSG *psg, Sample* dest, uint dest += 1; } - // ¥¨¥ó¥Ù¥í¡¼¥×¤Î·×»»¤ò¤µ¤Ü¤Ã¤¿Ä¢¿¬¤¢¤ï¤» + // エンベãƒãƒ¼ãƒ—ã®è¨ˆç®—ã‚’ã•ã¼ã£ãŸå¸³å°»ã‚ã‚ã› psg->ecount = (psg->ecount >> 8) + (psg->eperiod >> 8) * nsamples; if (psg->ecount >= (1 << (envshift+6-8))) { if ((psg->reg[0x0d] & 0x0b) != 0x0a) @@ -319,7 +319,7 @@ void PSGMix(PSG *psg, Sample* dest, uint } psg->ecount <<= 8; } else { - // ¥¨¥ó¥Ù¥í¡¼¥×¤¢¤ê + // エンベãƒãƒ¼ãƒ—ã‚ã‚Š for (i=0; i<nsamples; i++) { psg->ncount++; if(psg->ncount >= psg->nperiod) {