The software seeks a stable area of the sample and then artificially creates a loop. A sound segment is copied with a crossfade, so that two positions in the sound correspond exactly.