javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2Stereo.read_scalefactor_selection C# (CSharp) Method

read_scalefactor_selection() public method

*
public read_scalefactor_selection ( Bitstream stream, Crc16 crc ) : void
stream Bitstream
crc Crc16
return void
            public override void read_scalefactor_selection(Bitstream stream, Crc16 crc)
            {
                if (allocation != 0)
                {
                    scfsi = stream.get_bits(2);
                    if (crc != null)
                        crc.add_bits(scfsi, 2);
                }
                if (channel2_allocation != 0)
                {
                    channel2_scfsi = stream.get_bits(2);
                    if (crc != null)
                        crc.add_bits(channel2_scfsi, 2);
                }
            }