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:
@@ -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_;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user