Made audio encoding and decoding independant of ffmpeg