Any addon for record audio (created by application)to mp3

I am new in openframeworks,
I want to record audio(created be application) in mp3,
any class to do this.
Many many Thanks

I am new to this project also and I have basic knowledge of c++

but it seem libsndfile is the way to go but it does not do .mp3 only .wav and various other formats.
you can then convert .wav to .mp3 with any decent audio converter program.

I’m kindof clueless on how to use it thought due to my limited experience working with such process…

I have to try, because I am new in C++ (from flash)
Thanks so much ^^