Ejemplo n.º 1
0
        private string DispPCMRegion(ClsChip c)
        {
            if (c.pcmDataEasy == null && c.pcmDataDirect.Count == 0)
            {
                return("");
            }

            string region = "";

            for (int i = 0; i < 256; i++)
            {
                if (!desVGM.instPCM.ContainsKey(i))
                {
                    continue;
                }
                if (desVGM.instPCM[i].chip != c.chipType)
                {
                    continue;
                }
                if (desVGM.instPCM[i].isSecondary != c.IsSecondary)
                {
                    continue;
                }

                region += c.DispRegion(desVGM.instPCM[i]);
            }

            long tl = 0;

            foreach (int i in desVGM.instPCM.Keys)
            {
                tl += desVGM.instPCM[i].size;
            }
            region += (string.Format(msg.get("I04018"), tl));
            region += "\r\n";

            return(region);
        }
Ejemplo n.º 2
0
        private string DispPCMRegion(ClsChip c)
        {
            if (c == null)
            {
                return("");
            }

            if (c.chipType == enmChipType.YM2609)
            {
                YM2609 opna2 = (YM2609)c;
                if (opna2.pcmDataEasyA == null &&
                    opna2.pcmDataEasyB == null &&
                    opna2.pcmDataEasyC == null &&
                    opna2.pcmDataDirectA.Count == 0 &&
                    opna2.pcmDataDirectB.Count == 0 &&
                    opna2.pcmDataDirectC.Count == 0
                    )
                {
                    return("");
                }
            }
            else if (c.chipType == enmChipType.YM2610B)
            {
                YM2610B opnb = (YM2610B)c;
                if (opnb.pcmDataEasyA == null &&
                    opnb.pcmDataEasyB == null &&
                    opnb.pcmDataDirectA.Count == 0 &&
                    opnb.pcmDataDirectB.Count == 0
                    )
                {
                    return("");
                }
            }
            else
            {
                if (c.pcmDataEasy == null && c.pcmDataDirect.Count == 0)
                {
                    return("");
                }
            }

            string region = "";

            for (int i = 0; i < 256; i++)
            {
                if (!desVGM.instPCM.ContainsKey(i))
                {
                    continue;
                }
                if (desVGM.instPCM[i].chip != c.chipType)
                {
                    continue;
                }
                if (desVGM.instPCM[i].chipNumber != c.ChipNumber)
                {
                    continue;
                }

                region += c.DispRegion(desVGM.instPCM[i]);
            }

            long tl = 0;

            foreach (int i in desVGM.instPCM.Keys)
            {
                tl += desVGM.instPCM[i].size;
            }
            region += (string.Format(msg.get("I04018"), tl));
            region += "\r\n";

            return(region);
        }