public override void soundStreamHead2(SoundStreamHead tag) { frame.controlTags.Add(tag); }
public override void soundStreamHead(SoundStreamHead tag) { int length = 4; // we need to add two bytes for an extra SI16 (latencySeek) if (tag.compression == SoundStreamHead.sndCompressMP3) { length += 2; } encodeTagHeader(tag.code, length, false); // 1 byte writer.writeUBits(0, 4); // reserved writer.writeUBits(tag.playbackRate, 2); writer.writeUBits(tag.playbackSize, 1); writer.writeUBits(tag.playbackType, 1); // 1 byte writer.writeUBits(tag.compression, 4); writer.writeUBits(tag.streamRate, 2); writer.writeUBits(tag.streamSize, 1); writer.writeUBits(tag.streamType, 1); // 2 bytes writer.writeUI16(tag.streamSampleCount); if (tag.compression == SoundStreamHead.sndCompressMP3) { // 2 bytes writer.writeSI16(tag.latencySeek); } }
public override void soundStreamHead2(SoundStreamHead tag) { soundStreamHead(tag); }
public override void soundStreamHead2(SoundStreamHead tag) { tags.Add(tag); }
public override void soundStreamHead(SoundStreamHead tag) { open(tag); close(); }
public override void soundStreamHead2(SoundStreamHead tag) { open(tag); out_Renamed.Write(" playbackRate='" + tag.playbackRate + "'"); out_Renamed.Write(" playbackSize='" + tag.playbackSize + "'"); out_Renamed.Write(" playbackType='" + tag.playbackType + "'"); out_Renamed.Write(" compression='" + tag.compression + "'"); out_Renamed.Write(" streamRate='" + tag.streamRate + "'"); out_Renamed.Write(" streamSize='" + tag.streamSize + "'"); out_Renamed.Write(" streamType='" + tag.streamType + "'"); out_Renamed.Write(" streamSampleCount='" + tag.streamSampleCount + "'"); if (tag.compression == 2) { out_Renamed.Write(" latencySeek='" + tag.latencySeek + "'"); } close(); }
public virtual void soundStreamHead2(SoundStreamHead tag) { }