pre_emphasis works now

This commit is contained in:
2024-12-30 23:02:57 +01:00
parent 9931a5ed49
commit 20068617f2
+1 -1
View File
@@ -89,7 +89,7 @@ void init_pre_emphasis(PreEmphasis *pe) {
float apply_pre_emphasis(PreEmphasis *pe, float sample) { float apply_pre_emphasis(PreEmphasis *pe, float sample) {
float audio = sample-pe->alpha*pe->prev_sample; float audio = sample-pe->alpha*pe->prev_sample;
pe->prev_sample = audio; pe->prev_sample = audio;
return audio; return audio*2;
} }
#endif #endif