Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Add more info into README
  • Loading branch information
yzyhk904 authored Nov 17, 2024
1 parent 4ac8857 commit b07c719
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ This module,
<li>changes the number of steps in media volume to 100 steps (0.4~0.7dB per step),</li>
<li>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 <a href="https://github.com/Magisk-Modules-Alt-Repo/resampling-for-cheapies">"Resampling for cheapies" module</a> together to override its resampling settings if you intend to use LDAC bluetooth earphones or DAC's under $30,</li>
<li>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),</li>
<li>disables the sound dose feature of the mixer,</li>
<li>disables the android built-in spatial audio feature (A13 or higher; especially Tensor devices) for obtaining a nearly direct low jitter audio pass too,</li>
<li>disables pre-installed Moto Dolby features and Digital Wellbeing (please uninstall this manually if remaining as a usual app) for the same as above,</li>
<li>stops Tensor device's AOC daemon for reducing significant jitter,</li>
<li>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 <a href="https://github.com/yzyhk904/USB_SampleRate_Changer">"USB_SampleRate_Changer"</a> to switch from the usual hardware offloading USB (tunneling) driver to the USB HAL one,</li>
<li>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),</li>
<li>sets an audio scheduling tunable "vendor.audio.adm.buffering.ms" "2" to reduce jitter on all audio outputs,</li>
<li>nullifies volume listener libraries in "soundfx" folders for disabling slight compression (maybe a peak limiter only on Qcomm devices); I recommend using <a href="https://github.com/Magisk-Modules-Alt-Repo/drc-remover">"DRC remover"</a> additionally for disabling much larger compression (DRC) if on Qcomm devices</li>
</ol><br/>
Expand Down
20 changes: 20 additions & 0 deletions customize-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<xi:include[[:space:]]*href[[:space:]]*=[[:space:]]*".*audio_policy_volumes.*\.xml"' "$1" | awk -F '"' '{ print $2 }'
else
return 1
fi
}

# Extract the file name of a default_volume_tables.xml
function getDefaultVolumeFile()
{
if [ $# -gt 0 -a -r "$1" ]; then
grep -m 1 -e '<xi:include[[:space:]]*href[[:space:]]*=[[:space:]]*".*default_volume_tables.*\.xml"' "$1" | awk -F '"' '{ print $2 }'
else
return 1
fi
}

function stopDRC()
{
# stopDRC has two args specifying a main audio policy configuration XML file (eg. audio_policy_configuration.xml) and its dummy one to be overridden
Expand Down

0 comments on commit b07c719

Please sign in to comment.