Added all functions for audio encoding to the AVEncoder.