Fixed a problem with audio time map deltas, and being slowed down instead of sped up

This commit is contained in:
Jonathan Thomas
2012-10-23 11:13:06 -05:00
parent 651993ff60
commit bfa1ec82eb
2 changed files with 18 additions and 14 deletions

View File

@@ -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();