Opensource PCM to MP3 encoder

I’m looking for the code that converts PCM (uncompressed wave sound data) to MP3. If it exists in AS3 this would be very cool, but if it’s in Java or C# it’s good too, only condition it shouldn’t use LAME’s DLLs.
Any help appreciated.