Respond properly to changes of channel count. Previously the resampler wrapper had to be reconstructed in e.g. the case where one number of channels was requested on opening the device, but a different number was actually obtained.
Reorder getSourceSamples and putSamples args and add channel count. This makes a more consistent API and removes the possibility of a race condition in checking channel count in an application callback source whose system target may change.