Recurity.Swf.AdpcmSoundData.Parse C# (CSharp) Method

Parse() public method

public Parse ( Stream input, SoundType type ) : void
input Stream
type SoundType
return void
        public void Parse(Stream input, SoundType type)
        {
            BitStream bits = new BitStream(input);

            this._ADPCMCodeSize = (Byte)bits.GetBits(2);

            if (type.Equals(SoundType.mono))
            {
                AdpcmMonoPacket packet = new AdpcmMonoPacket();
                packet.Parse(input);
                this._ADPCMPacket = packet;
            }
            else if (type.Equals(SoundType.stereo))
            {
                AdpcmStereoPacket packet = new AdpcmStereoPacket();
                packet.Parse(input);
                this._ADPCMPacket = packet;
            }
        }
AdpcmSoundData