do you have a soundcard or are the speakers plugging directly onto the board?
crackling is usually sign of a poor connection, either in the jack socket or between the socket itself and whatever its connected to, if motherboard the socket itself may be loose due to a fault or wear and tear. If its a soundcard, again the socket could be coming loose from the board, or the card may not be plugged into the mobo properly. try giving the soundcard a firm shove home