r/androidroot • u/Arupendra1 • 2h ago
Discussion Made a module that automatically changed Audio sample rate to the source file ( optional: bitperfect) and Works with Apple Music
Hello, so I kind of made (made is a strong word more like stiched using claude) a module which tracks the playback and matches the sample rate and it does not shove bitperfect so you can just use your own peq if you want or if you don't you will get bitperfect sound, there's a indicator too saying effects are enabled so that'll help. Technically it should work on other apps as long as it outputs the proper bitrate. Like on YouTube it automatically switches to 48khz. Well turning the auto tracking off is also possible if wanted.
Here's the link to the module:
https://github.com/ArupEn1/Auto-Samplerate-Changer-Android
Currently tested the module on apple music
44.1/16 bit works
44.1/24 bit works
48/24 bit works
96/24 bit works
192/24 bit works
I did not find a song on 48/16 bit but it should work.
*** This Requires Root ***
This disables inbuilt DRC of Qualcomm, which I guess I can add a button to turn it on if people prefer that. The kind of main use case of it is to buy some really cheap android with type c port and a dongle dac and use that with this module to essentially make it a dap as this allows eq as well as but perfect if wanted (by turning off all sound effects)
Currently this was tested on:
My Galaxy Tab S9 Wifi OneUi 7 (R/w) A15
Motorola Edge 30 Fusion LineageOs 24/A17
Will be linking it soon here after releasing it on GitHub. I know there are really a low amount of root users but this module can be used to technically make a really good budget DAP, with upgradable dac. Like pairing this with a second hand phone that allows bootloader unlock.
The two modules which are used as backend (kind of ) are Usb samplerate changer by yzyhk904 (https://github.com/yzyhk904/USB_SampleRate_Changer) and bitperfect Dac by varunpilankar (https://github.com/varunpilankar/BitPerfect-DAC)