bug fixes

This commit is contained in:
2025-05-31 11:14:07 +02:00
parent ffcbc4b0c0
commit 5fd2383b03
3 changed files with 13 additions and 21 deletions
+1 -5
View File
@@ -11,8 +11,4 @@ inline float apply_preemphasis(ResistorCapacitor *filter, float sample) {
float out = (sample - filter->alpha * filter->prev_sample) * filter->gain;
filter->prev_sample = sample;
return out;
}
inline float hard_clip(float sample, float threshold) {
return fmaxf(-threshold, fminf(threshold, sample));
}
}
-2
View File
@@ -12,5 +12,3 @@ typedef struct
void init_preemphasis(ResistorCapacitor *filter, float tau, float sample_rate);
float apply_preemphasis(ResistorCapacitor *filter, float sample);
float hard_clip(float sample, float threshold);