Audio samplerate changer
Audio Sample Rate Changer is a module that changes the audio sample rate in the mixer across the Android audio system for the best Hi-Fi sound experience.
This module was developed for casual music lovers to experience the essence of my root script “USB Sample Rate Changer” through system modifications with root access such as magisk, kernelsu, and apatch.
Features
- Automatic USB HAL Audio Driver Samplerate Setting: Automatically sets the samplerate of the USB HAL audio driver to its maximum (up to 768 kHz & 32 bits; but 192 kHz & 32 bits for Tensor devices only).
- Optimized USB Data Transfer Period: Sets its USB data transfer period to 2000 µsec for reducing jitter, instead of the usual 5000 µsec.
- Automatic AOSP Bluetooth Audio Driver Samplerate: Automatically sets the samplerate of the AOSP Bluetooth audio driver depending on the selected codec, avoiding double re-sampling unlike offload drivers.
- Maximum Internal Speaker Samplerate: Sets the samplerate of internal speakers to maximum; 384 kHz & 32 bits for Qcom devices, 48 kHz & 32 bits for others.
- Mastering-Level Re-sampling Parameters: Default re-sampling parameters are the same as “Resampling for cheapies” (can be overridden by other modules), providing very mastering-level quality, which is much better than the over-sampling quality of very expensive DACs applied when “The bit-perfect mode” is active.
- I/O Kernel Tunables Optimization: Optimizes I/O kernel tunables for reducing jitter (most effective and almost safe as kernel tuning).
- Designed for Complementary Use: Designed for using “Audio Misc. Settings” or “Hifi maximizer” together, but can also be used by itself.
- Recommendation for Cheap Devices: Since the above two modules override re-sampling parameters, use “Resampling for cheapies” in addition if you use cheap devices (Bluetooth LDAC earphones, cheap USB DACs, internal speakers, etc.).
- Strong Recommendation for Jitter Reduction: Strongly recommends installing “Audio jitter silencer” together and uninstalling (or disabling) the “Digital Wellbeing” app (for reducing very large jitters which this module cannot reduce by itself).
- DRC and Call Screening Framework Disablement: Disables DRC (a type of compression) if enabled, and the call screening framework under audio HALs for reducing jitter.
Notes
- Android Version Compatibility: This module can run only on devices using a 7.0 audio policy configuration prevailing since Android 14 or so, including custom ROMs supporting relatively old ones (especially phh GSIs doing since Android 12), excluding recent AIDL-only ones like the Pixel 9 series.
- Testing Information: This module has been tested on LineageOS and crDroid ROMs, and phh GSIs (Android 14, and Qualcomm SoC & MediaTek SoC & Tensors combinations).
- Bluetooth Absolute Volume: Also, do not forget disabling “Absolute Volume” of Bluetooth devices in developer settings and setting a volume at the Bluetooth devices side to be maximum for the best audio quality, though most people may think inversely.
- Samplerate Limitations with Some Apps: Almost all equalizers and some apps (using a much worse internal re-sampler to output; e.g. old Am@zon music app, some VOIP apps, etc.) cannot work for greater than 192 kHz audio outputs (but of which quality is far better sometimes). And the latest Am@zon music app re-samples up to 192 kHz for such high-frequency audio output, i.e., incurs much worse double re-sampling. If you prefer such ones, modify
SampleRatePrimary="384000"
toSampleRatePrimary="192000"
or evenSampleRatePrimary="48000"
(these samplerates affect only internal speakers and wired headsets), and also the third argument ofpatchClearLock
command from “max” (means up to 768 kHz) to “default” (does up to 192 kHz) in “customize.sh” in a ZIP file of this module and install (or update) the modified one. - Included Modules: “DRC remover” and “USB Samplerate Unlocker” are already included; do not try installing them together.
DISCLAIMER
I am not responsible for any damage that may occur to your android device, we do not force you to install this module, so consider all your own risks.
Download Link
Module Info
- Module By
- Root SupportMagisk KernelSU APatch
- Latest Update
- Word Counter 633
- Character Counter 5639
Audio samplerate changer is a Module that supports installation on Magisk, KernelSU, APATCH, KSUNext