diff --git a/.vscode/.server-controller-port.log b/.vscode/.server-controller-port.log index ba686a6..592365f 100644 --- a/.vscode/.server-controller-port.log +++ b/.vscode/.server-controller-port.log @@ -1,5 +1,5 @@ { "port": 13452, - "time": 1737734479782, + "time": 1737738374932, "version": "0.0.3" } \ No newline at end of file diff --git a/src/mono_passthrough.c b/src/mono_passthrough.c index 64592f2..e3ec00a 100644 --- a/src/mono_passthrough.c +++ b/src/mono_passthrough.c @@ -131,10 +131,10 @@ int main() { #ifdef PREEMPHASIS #ifdef LPF float lowpassed = apply_low_pass_filter(&lpf, in); - float preemphasized = apply_pre_emphasis(&preemp, lowpassed); + float preemphasized = apply_pre_emphasis(&preemp, lowpassed)*2; float current_input = hard_clip(preemphasized); #else - float preemphasized = apply_pre_emphasis(&preemp, in); + float preemphasized = apply_pre_emphasis(&preemp, in)*2; float current_input = hard_clip(preemphasized); #endif #else diff --git a/src/polar_stereo_coder.c b/src/polar_stereo_coder.c index 60717ee..783842a 100644 --- a/src/polar_stereo_coder.c +++ b/src/polar_stereo_coder.c @@ -154,13 +154,13 @@ int main() { #ifdef LPF float lowpassed_left = apply_low_pass_filter(&lpf_l, l_in); float lowpassed_right = apply_low_pass_filter(&lpf_r, r_in); - float preemphasized_left = apply_pre_emphasis(&preemp_l, lowpassed_left); - float preemphasized_right = apply_pre_emphasis(&preemp_r, lowpassed_right); + float preemphasized_left = apply_pre_emphasis(&preemp_l, lowpassed_left)*2; + float preemphasized_right = apply_pre_emphasis(&preemp_r, lowpassed_right)*2; float current_left_input = hard_clip(preemphasized_left); float current_right_input = hard_clip(preemphasized_right); #else - float preemphasized_left = apply_pre_emphasis(&preemp_l, l_in); - float preemphasized_right = apply_pre_emphasis(&preemp_r, r_in); + float preemphasized_left = apply_pre_emphasis(&preemp_l, l_in)*2; + float preemphasized_right = apply_pre_emphasis(&preemp_r, r_in)*2; float current_left_input = hard_clip(preemphasized_left); float current_right_input = hard_clip(preemphasized_right); #endif diff --git a/src/sca_mod.c b/src/sca_mod.c index 5a668e6..8d766b1 100644 --- a/src/sca_mod.c +++ b/src/sca_mod.c @@ -139,10 +139,10 @@ int main() { #ifdef PREEMPHASIS #ifdef LPF float lowpassed = apply_low_pass_filter(&lpf, in); - float preemphasized = apply_pre_emphasis(&preemp, lowpassed); + float preemphasized = apply_pre_emphasis(&preemp, lowpassed)*2; float current_input = hard_clip(preemphasized); #else - float preemphasized = apply_pre_emphasis(&preemp, in); + float preemphasized = apply_pre_emphasis(&preemp, in)*2; float current_input = hard_clip(preemphasized); #endif #else diff --git a/src/stereo_coder.c b/src/stereo_coder.c index 8b0df72..a93f78c 100644 --- a/src/stereo_coder.c +++ b/src/stereo_coder.c @@ -210,13 +210,13 @@ int main() { #ifdef LPF float lowpassed_left = apply_low_pass_filter(&lpf_l, l_in); float lowpassed_right = apply_low_pass_filter(&lpf_r, r_in); - float preemphasized_left = apply_pre_emphasis(&preemp_l, lowpassed_left); - float preemphasized_right = apply_pre_emphasis(&preemp_r, lowpassed_right); + float preemphasized_left = apply_pre_emphasis(&preemp_l, lowpassed_left)*2; + float preemphasized_right = apply_pre_emphasis(&preemp_r, lowpassed_right)*2; float current_left_input = hard_clip(preemphasized_left); float current_right_input = hard_clip(preemphasized_right); #else - float preemphasized_left = apply_pre_emphasis(&preemp_l, l_in); - float preemphasized_right = apply_pre_emphasis(&preemp_r, r_in); + float preemphasized_left = apply_pre_emphasis(&preemp_l, l_in)*2; + float preemphasized_right = apply_pre_emphasis(&preemp_r, r_in)*2; float current_left_input = hard_clip(preemphasized_left); float current_right_input = hard_clip(preemphasized_right); #endif