This project reproduces the 8D audio effect. The audio pans left and right such that it sounds like the audio source is moving around you. Best viewed with headphones, obviously.
This project uses the sine function to pan the audio. pan = sin(val*speed)*depth Val increases at a constant rate. Music is Heart of Fire from Castlevania.