basic transcoding to AC3 working for CoreAudio

-fix slowdown caused by returning 0 from AddData
-add proper delay code

no longer attempt to encode stereo
fix DD-Master encoding
Merge branch 'coreaudio-transcode-ac3' of github.com:ecopoesis/xbmc into coreaudio-transcode-ac3