libfreerdp-codec: move audio format processing code to codec library