Combined convert to mono and convert samplerate into one function.