added zero crossing sync for buffer visualization