ha7ilm / csdr

A simple DSP library and command-line tool for Software Defined Radio.
523 stars 171 forks source link

add a nfm deemphasis filter for 12kHz #48

Open jketterl opened 5 years ago

jketterl commented 5 years ago

While working on openwebrx, I made the dsp output sample rate adapt to what is requested from the client (it was fixed to 11025 before). When clients with a 48kHz soundcard connect, this results in an output sample rate of 12000, which is not supported by the deemphasis_nfm_ff subcommand.

I went into the source and tried to build a new filter with the given octave code, which did not work on my end. I have tried to fix it to the best of my knowledge, and used it to build the new filter.

I also rebuilt the existing filters, the results were a little confusing: The 11025 came out exactly the same, while the rest didn't.

The result however seems to work fine, at least as far as I can tell.