(Wa1Reader.SampleTable): made accessible from internal classes.

This commit is contained in:
morkt 2015-11-11 22:32:06 +04:00
parent 5cfa6243c8
commit 505dc64fe9

View File

@ -113,7 +113,7 @@ namespace GameRes.Formats.Ffa
LittleEndian.Pack (m_output.Length-8, m_output, 4); LittleEndian.Pack (m_output.Length-8, m_output, 4);
} }
static ushort[] word_456CA0 = new ushort[] { internal static readonly ushort[] SampleTable = {
0x39, 0x39, 0x39, 0x39, 0x4D, 0x66, 0x80, 0x99, 0x39, 0x39, 0x39, 0x39, 0x4D, 0x66, 0x80, 0x99,
0x39, 0x39, 0x39, 0x39, 0x4D, 0x66, 0x80, 0x99, 0x39, 0x39, 0x39, 0x39, 0x4D, 0x66, 0x80, 0x99,
}; };
@ -275,7 +275,7 @@ namespace GameRes.Formats.Ffa
v74 = 0; v74 = 0;
} }
} }
uint v88 = (uint)word_456CA0[v81] * v72; uint v88 = (uint)SampleTable[v81] * v72;
v72 = (v88 >> 6) & 0xffff; v72 = (v88 >> 6) & 0xffff;
if (v72 < 0x7fu) if (v72 < 0x7fu)
v72 = 0x7f; v72 = 0x7f;
@ -336,7 +336,7 @@ namespace GameRes.Formats.Ffa
v14 = 0; v14 = 0;
} }
} }
uint v21 = (uint)word_456CA0[v160] * v12; uint v21 = (uint)SampleTable[v160] * v12;
v12 = (v21 >> 6) & 0xffff; v12 = (v21 >> 6) & 0xffff;
if (v12 < 0x7Fu) if (v12 < 0x7Fu)
v12 = 127; v12 = 127;
@ -399,7 +399,7 @@ namespace GameRes.Formats.Ffa
v98 = 0; v98 = 0;
} }
} }
uint v105 = (uint)word_456CA0[v150] * v96; uint v105 = (uint)SampleTable[v150] * v96;
v96 = (v105 >> 6) & 0xffff; v96 = (v105 >> 6) & 0xffff;
if (v96 < 0x7Fu) if (v96 < 0x7Fu)