[ResamplePi] Add support for formats that need shifting

This case is triggered by HiFiBerry's 24-bit format.
Requires updated firmware
Merge pull request #5731 from popcornmix/white_noise

[ResamplePi] Add support for formats that need shifting