public override void Write(Stream output)
{
//Log.Debug(this, "Writing DefineSound Tag");
WriteTagHeader(output);
byte[] id = BitConverter.GetBytes(this._soundID);
output.Write(id, 0, 2);
output.Flush();
BitStream bits = new BitStream(output);
bits.WriteBits(4, getFormatID(this._soundFormat));
bits.WriteBits(2, getSoundRateID(this._soundRate));
bits.WriteBits(1, this._soundSize == SoundSize.snd_8bit ?0 :1);
bits.WriteBits(1, this._soundType == SoundType.mono ?0 :1);
bits.WriteFlush();
byte[] size = BitConverter.GetBytes(this._soundSampleCount);
output.Write(size, 0, 4);
output.Write(this._soundData, 0, this._soundData.Length);
output.Flush();
}