Sorry, I couldnt type Chinese atm. So please bear with it.
That "click" song should be due to the reaction of the arm in the HDD, emm similar to SMS, due to a sudden change of voltage.
I would say it is most likely a bad logic board. Perhaps the circuit is shorted and thus you encountered such a situation.
The Magsafe power adaptor MAY be one of the reason, but the logic board should be a problem.
I'll strongly recommend you to take it to the apple certified technician for an inspection.
P.S. I had another situation on my macbook pro previously. The screen suddenly turned into a solid color, which was different every time, and I had to restart the macbook. So I took it to the apple store once for inspection, but it cant find any problems, and surely I am pissed. And then half an year later I took it to an apple certified technician and It is fixed. The technician told me the GPU is shorted due to the spilt of some liquid. So I may quite sure that your logic board got some similar issue here and got a shorted circuit.