Skip to content

Commit 401d82e

Browse files
authored
Add files via upload
* Lowered the cut-off freq. a little bit more to tune for recent custom ROM's
1 parent f1935c5 commit 401d82e

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,18 @@ Notes:
3333
| 159 | 480 | 92 | | Old devices of A11 and earlier |
3434
| 165 | 360 | | 104 | Low performance devices of A12 and later with audio ones having small amp. non-linearity |
3535
| 179 | 408 | | 99 | General purpose on A12 and later for audio devices having small amp. non-linearity |
36+
| 194 | 520 | | 98 | Ultra Hi-Fi for audio devices having small amp. non-linearity |
3637
| Parameters of this module: | - | - | - | - |
37-
| 179 | 520 | 93,94,95 | | AAC or Flac 44.1kHz; for LDAC BT earphones and DAC's under $30 both having large amp. non-linearity |
38-
| 194 | 520 | 85,86,87 | | Opus 48kHz; for LDAC BT earphones and DAC's under $30 both having large amp. non-linearity |
39-
| 194 | 520 | 43,44 | | Hires. 96kHz; for LDAC BT earphones and DAC's under $30 both having large amp. non-linearity |
38+
| 179 | 520 | 91 ~ 94 | | AAC or Flac 44.1kHz; for LDAC BT earphones and DAC's under $30 both having large amp. non-linearity |
39+
| 194 | 520 | 83 ~ 86 | | Opus 48kHz; for LDAC BT earphones and DAC's under $30 both having large amp. non-linearity |
40+
| 194 | 520 | 42,43 | | Hires. 96kHz; for LDAC BT earphones and DAC's under $30 both having large amp. non-linearity |
4041
| External examples: | - | - | - | - |
4142
| 100 | 29 | (91) | 109 | AK4493 (Sharp roll-off N-fold over-sampling) |
4243
| 150 | 42 | (91) | 109 | AK4191EQ (Sharp roll-off N-fold over-sampling) |
4344
| 120 | 35 | (97) | 110 | ES9038PRO (Fast roll-off N-fold over-sampling) |
4445
| vary 50 ~ 118 | 34 | 96 | (398) | ES9039PRO (Fast roll-off N-fold over-sampling) |
4546
| 110 | 40 | (96) | 109 | CS43131 (Fast roll-off N-fold over-sampling) |
47+
| 110 | 40 | (96) | 109 | CS43198 (Fast roll-off N-fold over-sampling) |
4648
| 98 | 130 | 98.5 | | MacOS Leopard (guess) |
4749
| 159 | 240 | | 99 | iZotope, No-Alias (guess) |
4850
| 100 | 64 | | 99 | SoX HQ linear phase (guess) |
@@ -59,7 +61,7 @@ Notes:
5961
| DAC | light | heavy | heavy | AK4491EQ Sharp roll-off |
6062
| DAC | medium | medium | light | ES9039PRO Fast roll-off |
6163
| Mastering tool | slight | slight | light | iZotope, No Alias (guess) |
62-
| Audio misc. settings | almost none | almost none | light | for general purpose |
64+
| Audio misc. settings | almost none | almost none | light | Ultra Hi-Fi |
6365
| Audio misc. settings | very slight | very slight | medium | for low performance devices |
6466
| Audio misc. settings | slight | almost none | almost none | for old devices |
6567
| This module | almost none | almost none | very slight | for LDAC BT earphones and DAC's under $30 |

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Change logs
22

3+
# v2.0.1
4+
* Lowered the cut-off freq. a little bit more to tune for recent custom ROM's
5+
36
# v2.0.0
47
* Changed the default target sampling rate from 44.1 kHz to 48 kHz because YTM recently changed its streaming format from AAC (141; 44.1 kHz & 256 kbps stereo) to Opus (774; 48 kHz & 256 kbps vbr stereo), Am@zon music had already changed its SD format from AAC (44.1 kHz & 256 kbps stereo) to Opus (48 kHz & 192 kbps vbr stereo) and YT had adopted Opus (251; 48 kHz & 160 kbps vbr stereo); Though this change affects very little for 44.1 kHz tracks (of which cut-off changes 20 kHz to 19 kHz)
58
* Note that Opus encoders enforce low-pass filtering (cut-off: 20 kHz), but their decoders output ultra sonic noise by noise-shaping dithering when 16 bit depth outputting

module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id=resampling-for-cheapies
22
name=Resampling for cheapies
3-
version=v2.0.0
4-
versionCode=2000
3+
version=v2.0.1
4+
versionCode=2001
55
author=zyhk
66
description=For avoiding "cheapie sound" distortion like a thin veiling smokescreen specific to LDAC Bluetooth earphones and DAC's under $30 (probably), this module sets near ideal re-sampling which involves special digital filtering at the system-wide mixer.

service.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,23 @@ function setResamplingParameters()
5858
resetprop ro.audio.resampler.psd.halflength 520
5959

6060
# If you feel your LDAC earphones or "cheapie" DAC wouldn't become to sound well or loses mellowness at all,
61-
# try replacing "85" (below) with "86" or "87" for appropriately cutting off ultrasonic noise causing intermodulation
61+
# try replacing "84" (below) with "83", "85" or "86" for appropriately cutting off ultrasonic noise causing intermodulation
6262
#
63-
resetprop ro.audio.resampler.psd.cutoff_percent 85
63+
resetprop ro.audio.resampler.psd.cutoff_percent 84
6464

6565
# Uncomment the following resetprop lines if you intend to replay only 44.1 kHz & 16 and 24 bit tracks;
6666
# If you feel your LDAC earphones or "cheapie" DAC wouldn't become to sound well or loses mellowness at all,
67-
# try replacing "93" (below) with "94" or "95" for appropriately cutting off ultrasonic noise causing intermodulation
67+
# try replacing "92" (below) with "91", "93" or "94" for appropriately cutting off ultrasonic noise causing intermodulation
6868
#
6969
#resetprop ro.audio.resampler.psd.stopband 179
70-
#resetprop ro.audio.resampler.psd.cutoff_percent 93
70+
#resetprop ro.audio.resampler.psd.cutoff_percent 92
7171

7272
# Uncomment the following resetprop lines if you intend to replay only 96 kHz & 24 bit Hires. tracks.
7373
# If you feel your LDAC earphones or "cheapie" DAC wouldn't become to sound well,
74-
# try replacing "43" (below) with "44" for appropriately cutting off ultrasonic noise causing intermodulation
74+
# try replacing "42" (below) with "43" for appropriately cutting off ultrasonic noise causing intermodulation
7575
#
7676
#resetprop ro.audio.resampler.psd.enable_at_samplerate 96000
77-
#resetprop ro.audio.resampler.psd.cutoff_percent 43
77+
#resetprop ro.audio.resampler.psd.cutoff_percent 42
7878

7979
reloadAudioserver
8080
}

0 commit comments

Comments
 (0)