vidify / old-audiosync

First implementation of the audio synchronization feature for Vidify, now obsolete
GNU Lesser General Public License v3.0
17 stars 3 forks source link

No memmove #38

Closed marioortizmanero closed 4 years ago

marioortizmanero commented 4 years ago

This also fixes a bug I found when calculating the resulting segment. Originally, when the sample was displaced to the right, only sample_len - lag elements were compared to calculate the Pearson Correlation Coefficient. But knowing that the source length is twice the sample length, sample_len elements can be compared, since the remainder when displaced to the right is available in the source data.

It's explained in detail in the code.