13 ReadValue<CarlaRecorderFrame>(InFile, *
this);
18 WriteValue<CarlaRecorderFrame>(OutFile, *
this);
31 Frame.DurationThis = 0.0f;
33 OffsetPreviousFrame = 0;
41 Frame.DurationThis = 0.0f;
45 Frame.DurationThis = DeltaSeconds;
46 Frame.Elapsed += DeltaSeconds;
54 std::streampos Pos, Offset;
62 WriteValue<uint32_t>(OutFile, Total);
65 WriteValue<uint64_t>(OutFile, Frame.Id);
66 Offset = OutFile.tellp();
67 WriteValue<double>(OutFile, Dummy);
68 WriteValue<double>(OutFile, Frame.Elapsed);
71 if (OffsetPreviousFrame > 0)
73 Pos = OutFile.tellp();
74 OutFile.seekp(OffsetPreviousFrame, std::ios::beg);
75 WriteValue<double>(OutFile, Frame.DurationThis);
76 OutFile.seekp(Pos, std::ios::beg);
80 OffsetPreviousFrame = Offset;
90 WriteValue<uint32_t>(OutFile, Total);
void Read(std::istream &InFile)
void Write(std::ostream &OutFile)
void SetFrame(double DeltaSeconds)
void WriteStart(std::ostream &OutFile)
void WriteEnd(std::ostream &OutFile)
CarlaRecorderFrames(void)