added support to write CMSampleBuffer using AudioFileWriter