CSPspEmu.Hle.Formats.audio.At3.MaiAT3PlusCoreDecoder.MAPCDSF_decodeTable2_Route1 C# (CSharp) Method

MAPCDSF_decodeTable2_Route1() static private method

static private MAPCDSF_decodeTable2_Route1 ( MaiBitReader mbr0, MaiAT3PlusCoreDecoderChnInfo chn_info ) : int
mbr0 CSPspEmu.Hle.Formats.audio.At3.SUB.MaiBitReader
chn_info MaiAT3PlusCoreDecoderChnInfo
return int
        static int MAPCDSF_decodeTable2_Route1(MaiBitReader mbr0, MaiAT3PlusCoreDecoderChnInfo chn_info)
        {
            int rs = 0;

            uint read_counter = chn_info.joint_chn_info.num_band_splited_used;
            if (mbr0.getWithI32Buffer(1) != 0)
            {
                read_counter = (uint)mbr0.getWithI32Buffer(5);
            }

            for (uint a0 = 0; a0 < read_counter; a0++)
            {
                if (chn_info.check_table0[a0] == 1) chn_info.table2[a0] = MAPCDSF_getHuffValue(MaiAT3PlusCoreDecoder_StaticData.MAPCDSD_huff_table2[chn_info.joint_chn_info.var90], mbr0); //tmp4
                else if (chn_info.check_table0[a0] == 0) chn_info.table2[a0] = 0;
                else if (chn_info.check_table0[a0] == 2) chn_info.table2[a0] = (uint)mbr0.getWithI32Buffer(1);
                else
                {
                    rs = -13;
                    break;
                }
            }

            return rs;
        }
MaiAT3PlusCoreDecoder