You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixed a problem with audio time map deltas, and being slowed down instead of sped up
This commit is contained in:
@@ -396,7 +396,7 @@ tr1::shared_ptr<Frame> Clip::get_time_mapped_frame(tr1::shared_ptr<Frame> frame,
|
||||
}
|
||||
|
||||
// Resample audio to be X times faster (where X is the delta of the repeat fraction)
|
||||
resampler->SetBuffer(samples, float(number_of_samples) / float(start));
|
||||
resampler->SetBuffer(samples, float(start) / float(number_of_samples));
|
||||
|
||||
// Resample data, and return new buffer pointer
|
||||
AudioSampleBuffer *buffer = resampler->GetResampledBuffer();
|
||||
|
||||
Reference in New Issue
Block a user