Crackling is a sign that the computer has trouble handling what you are doing.
I assume it is a fairly new and powerfull computer, so the hardware is probably not the problem, unless your audio interface is set at a very low latency. Increase the latency and see what happens. If there is no or...