The whistling / high pitch noise when the camera flash is charging up is caused by magnetostriction on the inductor of the flyback converter in the flashes circuitry. I think possibly the LC resonance may play a part as well. :)
The pop sound when the flash is fired, I've noticed, gets louder...