[alsa-devel] How to properly handle variable samplerate?