encoder: write audio in segments

I'll be honest, this probably makes no noticeable difference at all. It should be faster and more efficient, but whether that translates into any tangible improvement is yet to be seen.
This commit is contained in:
itsmattkc
2021-05-10 00:44:08 +10:00
parent 27653f10dc
commit 15556c64ae
12 changed files with 295 additions and 152 deletions
+5 -1
View File
@@ -48,8 +48,12 @@ protected:
}
private:
void WriteAudioLoop(const TimeRange &time, SampleBufferPtr samples);
QHash<rational, FramePtr> time_map_;
QHash<TimeRange, SampleBufferPtr> audio_map_;
ColorManager* color_manager_;
ExportParams params_;
@@ -60,7 +64,7 @@ private:
int64_t frame_time_;
AudioPlaybackCache audio_data_;
rational audio_time_;
};