Refactor file audio output classes.
Add error detection for FLAC encoder callbacks.
Make mp3 and ogg encoder to work.