Fixed a few bugs related to allocating the proper write buffers for the AudioBufferList and added stereo support