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

MAPCDSF_decodeTable0DataNum() static private method

static private MAPCDSF_decodeTable0DataNum ( MaiBitReader mbr0, MaiAT3PlusCoreDecoderChnInfo chn_info ) : int
mbr0 CSPspEmu.Hle.Formats.audio.At3.SUB.MaiBitReader
chn_info MaiAT3PlusCoreDecoderChnInfo
return int
        static int MAPCDSF_decodeTable0DataNum(MaiBitReader mbr0, MaiAT3PlusCoreDecoderChnInfo chn_info)
        {
            chn_info.table0_data_num0 =
                chn_info.joint_chn_info.num_band_splited_declared;

            chn_info.table0_data_num1 = 0;

            if (chn_info.table0_flag_data_num != 0)
            {
                chn_info.table0_data_num0 = (uint)mbr0.getWithI32Buffer(5);

                if (chn_info.table0_data_num0 > chn_info.joint_chn_info.num_band_splited_declared)
                {
                    return -5;
                }

                if (chn_info.table0_flag_data_num == 3)
                {
                    chn_info.table0_data_num1 = (uint)mbr0.getWithI32Buffer(2) + 1;
                    if (chn_info.chn_flag != 0) chn_info.table0_data_num1 = chn_info.table0_data_num1 - 1 + 3;
                }
            }

            return 0;
        }
MaiAT3PlusCoreDecoder