Note that this makes AepelzensModules plugin builds incompatible on other people’s computers, unless they have libsamplerate installed. A better solution is for Aepelzen to statically link the library.
In a case like this, where a plugin wants to statically link to some open source library, must the plugin include pre-built libraries for all three platforms? In this case, plugin would have to include hand made libsnd static libraries? Or could the plugin put the library source in its deps, and get the build machine to build it?
Does the build machine know how to build libsndfile?