Improved emphasis

This commit is contained in:
Andreas Eversberg
2018-01-20 15:49:19 +01:00
parent 50fee02c63
commit 3a5fa8837c
7 changed files with 24 additions and 13 deletions

View File

@@ -464,7 +464,8 @@ int r2000_create(int band, int channel, enum r2000_chan_type chan_type, const ch
r2000->pre_emphasis = pre_emphasis;
r2000->de_emphasis = de_emphasis;
rc = init_emphasis(&r2000->estate, samplerate, CUT_OFF_EMPHASIS_R2000);
/* we don't know anything about frequency response, so we use NMT defaults */
rc = init_emphasis(&r2000->estate, samplerate, CUT_OFF_EMPHASIS_R2000, CUT_OFF_HIGHPASS_DEFAULT, CUT_OFF_LOWPASS_DEFAULT);
if (rc < 0)
goto error;