seandepagnier / rtlsdr_pi

rtlsdr plugin for opencpn for AIS vhf and more on tv tuner usb dongle
30 stars 14 forks source link

-r 48k vs -r 48000 #14

Closed tchiwam closed 5 years ago

tchiwam commented 6 years ago

aplay -r 48k is not working on my system aplay -r 48000 does work...

Could this be changed ?

seandepagnier commented 6 years ago

very strange.

In any case, you should probably use rtl_ais... Are you listening to vhf radio or fm radio with the plugin?

tchiwam commented 6 years ago

rtl_ais Working vhf radio and fm radio are bugging on that parameter.

tchiwam commented 6 years ago

Wed 15 Aug 2018 05:46:13 PM UTC: Execution failed Stopped: rtl_fm -r 48k -s 250k -f 88.0M -l 0 Executing: Invalid FM frequency Executed: aplay -r 12k -f S16_le -t raw -c 1 execvp(Invalid, FM, frequency) failed with error 2!

I also have an issue with the 88.0M it seems

seandepagnier commented 6 years ago

I see no issue with changing it

tchiwam commented 6 years ago

OK, seems the behaviour is similar on ubuntu and gentoo, from the manual writing 48 instead of 48k will work as all values under 300 are considered as kilohertz.

pglez82 commented 6 years ago

I have changed this and made a pull request with my code. It is working now for me. #16