JvanKatwijk / dab-cmdline

DAB decoding library with example of its use
GNU General Public License v2.0
57 stars 29 forks source link

device handlers: make sure they print messages on stderr #22

Closed athoik closed 6 years ago

athoik commented 6 years ago

When using example3 with rtsdr-handler the output contains some informational messages. Eg. cat out.stream | strings | head going for rtlsdr 188928000 35 samplerate set to 2048000 Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6 effective gain: index 10, gain 166 ...

This commit changes all handlers to output messages to stderr, so example3 output will contain only raw pcm samples.

JvanKatwijk commented 6 years ago

Great, Thanks