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.
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.