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;
}
}