Need help

Hi guys just wanted to see if anyone here is or has been in the same boat about 3 weeks ago my right ear randomly started to have a loud to quiet clicking sound that slowed down until it was just tiny clicks and the if I moved my ear around it would go I think it was being caused by when I used earphones or sounds coming from tvs and computers well I went to the doctors and he said that it was something to do with the amount of wax in my ear as there was quite the build up and today I want and had them cleaned and the wax removed and it still seems to be happening can anyone help me identify what it is ?