Sleep in main cycle in order not to consume CPU after playback stop