Panning a sound

You may find this topic helpful: Simulating the Doppler effect