Audio format conversion using Ffmpeg swresample.

EDIT3: Audio format conversion.  FFmpeg libswresample (or libavresample as a temporary workaround) is required.
With all the duplicated code between this and apps/openmw/mwsound/ffmpeg_decoder.hpp
couldn't you break most of this out into something like sound_resampling.h/cpp