0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 11:33:54 +01:00
This commit is contained in:
2024-12-30 23:01:29 +01:00
parent 02e3619b38
commit 9931a5ed49

View File

@@ -78,7 +78,7 @@ float get_next_sample(Oscillator *osc) {
#ifdef PREEMPHASIS
typedef struct {
float alpha;
float prev_sample
float prev_sample;
} PreEmphasis;
void init_pre_emphasis(PreEmphasis *pe) {
@@ -88,7 +88,7 @@ void init_pre_emphasis(PreEmphasis *pe) {
float apply_pre_emphasis(PreEmphasis *pe, float sample) {
float audio = sample-pe->alpha*pe->prev_sample;
pe->prevsample = audio;
pe->prev_sample = audio;
return audio;
}
#endif