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

MAPCDSF_readPackTable0() static private method

static private MAPCDSF_readPackTable0 ( MaiBitReader mbr0, MaiAT3PlusCoreDecoderPackTable0 table, uint counter ) : int
mbr0 MaiBitReader
table MaiAT3PlusCoreDecoderPackTable0
counter uint
return int
        static int MAPCDSF_readPackTable0(MaiBitReader mbr0, MaiAT3PlusCoreDecoderPackTable0 table, uint counter)
        {
            for (uint a0 = 0; a0 < 0x10; a0++) table.data[a0] = 0;

            table.check_data0 = mbr0.getWithI32Buffer(1);

            if (table.check_data0 != 0)
            {
                table.check_data1 = mbr0.getWithI32Buffer(1);
                if (table.check_data1 != 0)
                {
                    for (uint a0 = 0; a0 < counter; a0++) {
                        table.data[a0] = mbr0.getWithI32Buffer(1);
                    }
                }
                else
                {
                    for (uint a0 = 0; a0 < counter; a0++) {
                        table.data[a0] = 1;
                    }
                }
            }

            return 0;
        }
MaiAT3PlusCoreDecoder