the proper fix for the clicking is to either use SRC's callback resampler or fix snd_mem.c to handle not getting the samples it expects, but I think the callback will be better in the long run.