As the sound approaches, it gets louder (simply because you're closer to the source), and has a higher pitch. Then, as it passes, the sound suddenly dips down, and as it drives away you hear a lower pitch, plus a decreasing volume as the engine gets farther and farther away.