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