Add caps to pipeline to specify src and recording sample rates and simplified platform specific code.