Mercurial > pmdwin
changeset 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 (2013-05-21) |
parents | 34086e667cc7 |
children | c8875256b767 |
files | fmgen/psg.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
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) {