0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00

remove some

This commit is contained in:
2025-01-31 21:01:06 +01:00
parent a2217ecb5e
commit 7d1ee4ae50
3 changed files with 0 additions and 31 deletions

View File

@@ -78,14 +78,6 @@ float hard_clip(float sample, float threshold) {
return sample; // No clipping
}
}
float soft_clip(float sample, float threshold) {
if (fabs(sample) <= threshold) {
return sample; // Linear region
} else {
float sign = (sample > 0) ? 1.0f : -1.0f;
return sign * (threshold + (1.0f - threshold) * pow(fabs(sample) - threshold, 0.5f));
}
}
void init_delay_line(DelayLine *delay_line, int max_delay) {
delay_line->buffer = (float *)calloc(max_delay, sizeof(float));