You'll need the WinAPI and a solid understanding of the mathematics involved and the audio drivers.