Replace old effect I/O interface.

This new interface makes it possible to write effects that change the number of
channels or the sample rate. In addition, it fixes issues with effects that
add latency between their input and output (such as crossfeed_hrtf).