Trying to find out the direction from which a sound is coming from.

The standard technique for that is beamforming. It needs a lot of processing power, however.