Hi-Res Audio Enabler Troubleshootings- You can check via logcat and search bitwidth and play music to confirm is your ROM supported or not. If you see 24 bitwidth or 32 bitwidth and no any resetting to 16 bitwidth, that means your ROM is supported, otherwise it's not supported.
- To check is your ROM already applied 24 or 32 bit width, run this terminal command:
su -c getprop persist.vendor.audio_hal.dsp_bit_width_enforce_mode
If there is no 24 or 32 output then the ROM is not applied Hi-Res yet. (This is not for checking that the ROM supports Hi-Res or not, use logcat instead!).
- Don't trust any other apps
- If accidentally deleted /data/adb/modules/HiResAudio folder manually without removing the module via Magisk app, you have to run this after reboot:
su -c resetprop -p --delete persist.vendor.audio_hal.dsp_bit_width_enforce_mode
and reboot again.
Optionals
You can create /data/media/0/optionals.prop file yourself if it's not exist yet (if you are not in user 0, then change the 0 to your current user) using
@mtmanager or any file manager and write any modified settings bellow inside the optionals.prop file
BEFORE INSTALLING/REINSTALLING THE MODULE:
- To enable 32 bit width instead of 24 bit width:
hires.32=1
- To keep 16 bit width on loudspeaker:
speaker.bit=16
- To keep 24 bit width on loudspeaker if hires.32=1:
speaker.bit=24
- You can enable audio format PCM 24 bit packed/32 bit patch to audio output flag deep buffer playback. But it causes low sound issue or even no sound issue at all in some devices. This even doesn't work in most Android 13 and cause some audio mods doesn't work:
hires.pcm=1
You can check is it applied or not via Terminal Emulator (sample rate will be showed here also):
su
dumpsys media.audio_flinger | grep -B31 AUDIO_OUTPUT_FLAG_DEEP_BUFFER
If the Hal Format: is not AUDIO_FORMAT_PCM_24_BIT_PACKED/AUDIO_FORMAT_PCM_32_BIT, that means it doesn't work and will cause some issues.
Audio Compatibility Patch Magisk module is disabling audio output flag deep buffer and redirecting to audio output flag primary, so not recommended to use Audio Compatibility Patch Magisk module if there is no problem with deep buffer.
- You can
also enable audio format PCM 24 bit packed/32 bit to audio output flag primary (low latency playback).
BUT THIS OPTION IS ONLY IF hires.pcm=1:
hires.primary=1
To check in terminal (sample rate will be showed here also):
su
dumpsys media.audio_flinger | grep -B35 AUDIO_OUTPUT_FLAG_PRIMARY
- You can enable audio format pcm float instead of 24 bit packed/32 bit like on Pixel 6 Pro.
BUT THIS OPTION IS ONLY IF hires.pcm=1:
hires.float=1
- You can change the sample rate
BUT THIS OPTION IS ONLY IF hires.pcm=1.To enable sample rate 44100:
sample.rate=44
To enable sample rate 88200:
sample.rate=88
To enable sample rate 96000:
sample.rate=96
To enable sample rate 128000:
sample.rate=128
To enable sample rate 176400:
sample.rate=176
To enable sample rate 192000:
sample.rate=192
To enable sample rate 352800:
sample.rate=352
To enable sample rate 384000:
sample.rate=384
Some sample rates may be unsupported by device. DTS soundfx only supports default sample rates 44100 and 48000. Sound Enhancement soundfx doesn't support sample rate greater than 96000.
CAUTIONS!!! INSTALL/REINSTALL THE MODULE AFTERWARDS and reboot.
Do not asking which option you have to use! Just experiment it by yourself!