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

MAPCDSF_decodeACC2Main1_Route5() static private method

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

            for (uint a0 = 0; a0 < chn_info.uk1b450; a0++)
            {
                if (chn_info.acc_data_now.table[a0].num_acc != 0)
                {
                    uint uk1b46c_x = (uint)mbr0.getWithI32Buffer(1);

                    if (uk1b46c_x != 0)
                    {
                        chn_info.acc_data_now.table[a0].data1[0] = MAPCDSF_getHuffValue(MaiAT3PlusCoreDecoder_StaticData.MAPCDSD_huff_table_global_2[0], mbr0);

                        for (uint a1 = 1; a1 < (uint)chn_info.acc_data_now.table[a0].num_acc; a1++)
                        {
                            chn_info.acc_data_now.table[a0].data1[a1] =
                                chn_info.acc_data_now.table[a0].data1[a1 - 1]
                                + MAPCDSF_getHuffValue(MaiAT3PlusCoreDecoder_StaticData.MAPCDSD_huff_table_global_3[0], mbr0);

                            chn_info.acc_data_now.table[a0].data1[a1] &= 0xF;
                        }
                    }
                    else
                    {
                        for (uint a1 = 0; a1 < (uint)chn_info.acc_data_now.table[a0].num_acc; a1++)
                        {
                            if (a1 < (uint)chn_info.chn_ref.acc_data_now.table[a0].num_acc)
                            {
                                chn_info.acc_data_now.table[a0].data1[a1] = chn_info.chn_ref.acc_data_now.table[a0].data1[a1];
                            }
                            else
                            {
                                chn_info.acc_data_now.table[a0].data1[a1] = 0x7;
                            }
                        }
                    }
                }
            }

            return rs;
        }
MaiAT3PlusCoreDecoder