This script changes the sample rate of the USB audio class driver on Android devices on the fly like Bluetooth LDAC or Windows mixer
Note: For those who are curious about in-DAC over-sampling filter distortion, try mock series shell scripts in "Usage_samples/Resampling" folder after setting the output sample rate of your USB DAC to be 353kHz (8x over-sampling) or 705 kHz (16x over-sampling).
Edit: Fixed Usage samples for executing on KernelSU ("exec su" to "su" for correct expansion of shell variables)
Remark: Don't forget to install "Audio jitter silencer" together!
Edit: Fixed bluetooth audio for offloading modes