Auto Align in Drumagog?

I think it tries to align transient peaks from the sample to the source audio. I've had mixed results with this... sometimes it syncs up well, and other times I get better results when disabling it.