fixed CAESinkNULL
drop the ringbuffer and just keep track of totals
reverse the logic in AddPackets to make it more obvious we accept only up to our maximum
[WIN32] fixed compilation
changed: Sleep(0) is defined as sched_yield() in XTimeUtils.cpp (thanks ace20022).
[AESinkNull] Silence warning double -> int
[AE] [AESinks] Cleanup/init vars, check for return values and performance improvements, e.g., call by ref, pre-/post-incr.
SoftAE: make sure we hold sink lock when we consume and write to sink

This make sure that sink delay and buffers are kept in line.
SoftAE: let SoftAEStream share SoftAE stream lock

This avoids holding an internal stream lock, while soft ae
is trying to read out new frames and allow us to properly
hold lock while requesting delays.
softae: use correct number of bytes when consuming from src buffer
softae: add fail safe to WriteSink to avoid deadlocking on broken output