I wanted to implement that too. But i found out that it was rather hard, so i started to use OGG and OpenAL.

You might want to take a look at RazorLame. It is a well-known mp3 encoder/decoder.. i thought that there were pascal headers for it. Dont know where.