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

MAPCDSF_decodeTable0_Route4() static private method

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

            chn_info.table0_flag_data_num = mbr0.getWithI32Buffer(2);

            if ((rs = MAPCDSF_decodeTable0DataNum(mbr0, chn_info)) != 0) return rs;

            if (chn_info.table0_data_num0 > 0)
            {
                uint huff_table_type1 = (uint)mbr0.getWithI32Buffer(2);

                for (uint a0 = 0; a0 < chn_info.table0_data_num0; a0++)
                {
                    chn_info.table0[a0] = chn_info.chn_ref.table0[a0] + MAPCDSF_getHuffValue(MaiAT3PlusCoreDecoder_StaticData.MAPCDSD_huff_table0[huff_table_type1], mbr0);
                    chn_info.table0[a0] &= 0x7;
                }
            }

            if ((rs = MAPCDSF_padTable0(mbr0, chn_info)) != 0) return rs;

            return rs;
        }
MaiAT3PlusCoreDecoder