Fixing audio pops when stacking multiple clips with different offsets (pretty big issue for some people, just depending on your source framerates and position/start of clips).

This commit is contained in:
Jonathan Thomas
2017-07-16 23:58:16 -05:00
parent a322411669
commit 4e3dd937e2
2 changed files with 6 additions and 1 deletions

View File

@@ -346,7 +346,7 @@ tr1::shared_ptr<Frame> FrameMapper::GetOrCreateFrame(long int number)
tr1::shared_ptr<Frame> new_frame;
// Init some basic properties about this frame (keep sample rate and # channels the same as the original reader for now)
int samples_in_frame = Frame::GetSamplesPerFrame(number, target, reader->info.sample_rate, reader->info.channels);
int samples_in_frame = Frame::GetSamplesPerFrame(number + timeline_frame_offset, target, reader->info.sample_rate, reader->info.channels);
try {
// Debug output