I want to know if it's possible to record audio and save it in flac format.
I don't know if I need to save it first in Wav and then transform it to flac or if I can save it directly to flac.

Also, I want to know how to encode the audio information into a flac file.