Consistent samplerate handling for playback and recording - Alex