Recognising 50 Hz mains hum
Europe, most of Asia, Africa, Australia and much of South America run their power grids at 50 Hz. Japan is split: the east, including Tokyo, uses 50 Hz and the west, including Osaka, uses 60 Hz. Audio equipment picks up this frequency through ground loops and unshielded cables, producing a low hum that doesn’t change with the volume knob.
Play this tone and compare it to the hum you hear with the music paused. If they match, the cause is electrical. A rougher, buzzier version of the same pitch includes harmonics at 100 and 150 Hz, which typically come from transformers and power supplies.
How to get rid of ground-loop hum
Ground loops happen when two connected devices are grounded at different points, for example an amplifier plugged into one wall socket and a TV or computer plugged into another. Plug everything into the same power strip first. If you use a laptop on its charger, unplug the charger: if the hum disappears, a ground-loop isolator on the audio cable will usually fix it.
Never remove the earth pin from a mains plug to cure hum; it is dangerous. In cars, a whine that rises with engine speed is alternator noise rather than 50 Hz hum, and is fixed with better grounding of the head unit or amplifier.