You can use Channel::setFrequency to set the sample rate of any channel. The default is to set the sample rate to the same as the file which would cause resampling. If you manually set it to the system sample rate that would prevent resampling.