Adds support to playBuffer for different sample rates.