Fixed problem with cracking sound; also new algorithm which uses less CPU

New thread synchronizing algorithm.
It uses less CPU, and it should work without any cracking sound.
Throughly tested on all iOS mobile devices (iPhone/iPad/iPod), and on PC and on Android. It should work on other platforms too.