softae: use correct number of bytes when consuming from src buffer
softae: add fail safe to WriteSink to avoid deadlocking on broken output