# HG changeset patch # User Emmanuel Gil Peyrot # Date 1369125937 -7200 # Node ID 8ad174416431c141c4f9e729a939c7a1594590f8 # Parent 34086e667cc70f8824bd2d075d77d902f5fb9926 Convert the last EUC-JP file to UTF-8. diff --git a/fmgen/psg.c b/fmgen/psg.c --- a/fmgen/psg.c +++ b/fmgen/psg.c @@ -46,7 +46,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI #define Min(a,b) ((atperiodbase = (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; incount++; 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; incount++; if(psg->ncount >= psg->nperiod) {