I sent this with the binary attached too but it was too big so here it
is without the binary:
-------------------------------------------------------------------------------------
As was probably obvious from my previous message, I've been screwing
around with the radio today.

I made some changes to the radio player from the 0.3.6r source, and
here it is.

The changes are:

Added the -g command line option to enable a "Switch to Frequency"
prompt when in passthru mode, so you can switch stations without
quitting.

So, "radio -P -g -f 93.1" would start playing 93.1, then give you this
prompt: "Enter the frequency to change to: "

Changed the -s option to actually return a list of FM stations,
instead of just frequencies. Works well for me, with about 1 error per
60 stations found (1 per 3 runs for me as there are 20 stations here).
Very quick and dirty but much better than nothing. Output looks like
this:
STATION: 89.3FM
STATION: 91.5FM
STATION: 93.1FM
STATION: 94.7FM
STATION: 95.5FM
STATION: 96.3FM
STATION: 97.1FM
STATION: 97.9FM
STATION: 99.5FM
STATION: 100.3FM
STATION: 101.1FM
STATION: 101.9FM
STATION: 102.7FM
STATION: 103.5FM
STATION: 104.3FM
STATION: 105.1FM
STATION: 105.9FM
STATION: 106.7FM
STATION: 107.5FM

Created the -a option now does basically what -s did before. Output
looks like this:
66.81, 1069: 24576
66.88, 1070: 24576
72.81, 1165: 24576
72.88, 1166: 24576
72.94, 1167: 24576
73.62, 1178: 24576
73.69, 1179: 24576
73.75, 1180: 24576
73.81, 1181: 24576
77.12, 1234: 32768
77.19, 1235: 32768
77.25, 1236: 32768
77.31, 1237: 32768
77.38, 1238: 24576
81.69, 1307: 24576
81.75, 1308: 32768
81.81, 1309: 24576
81.88, 1310: 24576
89.19, 1427: 32768
89.25, 1428: 32768
89.31, 1429: 32768
89.38, 1430: 32768
89.44, 1431: 32768
STATION: 89.3FM
91.44, 1463: 24576
91.50, 1464: 24576
91.56, 1465: 24576
STATION: 91.5FM

I am not a coder, so if I did things the wrong way or poorly, you'll
have to deal with it. That said, if this is up to snuff then I'd be
glad to add some more stuff if there are simple requests.

Attachment: radio.c
Description: Binary data

Reply via email to