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

MAPCDSF_decodeTable1_Route2() static private method

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

            int uk1c70c = mbr0.getWithI32Buffer(2);
            chn_info.uk1c718 = mbr0.getWithI32Buffer(6);
            chn_info.uk1c714 = mbr0.getWithI32Buffer(6);

            MAPCDSF_initTable1(chn_info);

            if (chn_info.joint_chn_info.num_band_splited_used != 0)
            {
                MaiAT3PlusCoreDecoderSearchTableDes huff_table_now = MaiAT3PlusCoreDecoder_StaticData.MAPCDSD_huff_table1_2[uk1c70c];
                for (uint a0 = 0; a0 < chn_info.joint_chn_info.num_band_splited_used; a0++)
                {
                    uint value_tmp = (uint)MAPCDSF_getHuffValue(huff_table_now, mbr0);
                    if ((value_tmp & 0x8) != 0) value_tmp |= 0xFFFFFFF0;
                    else value_tmp &= 0xF;
                    chn_info.table1[a0] += value_tmp;
                    chn_info.table1[a0] &= 0x3F;
                }
            }

            return rs;
        }
MaiAT3PlusCoreDecoder