robotastic / trunk-recorder

Records calls from a Trunked Radio System (P25 & SmartNet)
GNU General Public License v3.0
867 stars 195 forks source link

Sample Rate Cannot Be a Multiple of 24k #58

Closed normFranklin closed 8 years ago

normFranklin commented 8 years ago

When the sample rate is a multiple of 24k the program exits with: "Something is probably wrong! Resampling rate too low in p25_trunking."

In p25_recorder.cc and p25_trunking.cc the software requires (arb_rate < 1) to avoid an exit(0).

When the sample rate is a multiple of 24k, arb_rate is one.

The program is working great for me after a change to (arb_rate <= 1).

robotastic commented 8 years ago

Good call! I had been meaning to add in a fix. I will go make this change. Open this back up if it doesn't work.

Thanks!

normFranklin commented 8 years ago

I see that you updated p25_recorder. p25_trunking.cc has the same issue.

robotastic commented 8 years ago

Doh - yep, meant to change that too. got distracted getting kids ready for school