From b07c71901a7acf909a420a6b835bd79317a6b0d5 Mon Sep 17 00:00:00 2001 From: yzyhk904 <86816519+yzyhk904@users.noreply.github.com> Date: Sun, 17 Nov 2024 15:44:36 +0900 Subject: [PATCH] Add files via upload Add more info into README --- README.md | 2 +- customize-functions.sh | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c874db..a8d399a 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ This module,
  • changes the number of steps in media volume to 100 steps (0.4~0.7dB per step),
  • raises the resampling quality of the Android OS mixer (AudioFlinger) to a very mastering quality (i.e., no resampling distortion in a real sense); Install "Resampling for cheapies" module together to override its resampling settings if you intend to use LDAC bluetooth earphones or DAC's under $30,
  • disables the effects framework of the mixer (to interface to equalizers, virtualizers, visualizers, echo cancelers, automatic gain controls, etc.) for obtaining a nearly direct low jitter audio pass (very few vulnerable equalizers may crash without this framework, but please ignore it),
  • +
  • disables the sound dose feature of the mixer,
  • disables the android built-in spatial audio feature (A13 or higher; especially Tensor devices) for obtaining a nearly direct low jitter audio pass too,
  • disables pre-installed Moto Dolby features and Digital Wellbeing (please uninstall this manually if remaining as a usual app) for the same as above,
  • stops Tensor device's AOC daemon for reducing significant jitter,
  • adjusts a USB transfer period of the USB HAL driver (not the recently common hardware offloading USB (tunneling) driver, but including Tensor device's offloading USB driver) for directly reducing the jitter of a PLL in a DAC (even in an asynchronous mode); Use "USB_SampleRate_Changer" to switch from the usual hardware offloading USB (tunneling) driver to the USB HAL one,
  • -
  • sets a higher bitrate limit of bluetooth codec SBC (dual channel mode) for EDR 2Mbps entry class earphones (not for EDR 3Mbps performance ones, but including AV amplifiers and BT speakers),
  • sets an audio scheduling tunable "vendor.audio.adm.buffering.ms" "2" to reduce jitter on all audio outputs,
  • nullifies volume listener libraries in "soundfx" folders for disabling slight compression (maybe a peak limiter only on Qcomm devices); I recommend using "DRC remover" additionally for disabling much larger compression (DRC) if on Qcomm devices

  • diff --git a/customize-functions.sh b/customize-functions.sh index 0eb9093..a2f2ae8 100644 --- a/customize-functions.sh +++ b/customize-functions.sh @@ -22,6 +22,26 @@ function getActivePolicyFile() }' } +# Extract the file name of an audio_policy_volumes.xml +function getVolumeFile() +{ + if [ $# -gt 0 -a -r "$1" ]; then + grep -m 1 -e '