Hello

I am currently writing a small frontend for ivtv, and just now i'm
writing a wrapper for ivtv-tune for Java. It works like a charm, and is
compatible with gcj. I will post it here as soon as the wrapper is done.

But there is one thing that would be great if was changed: ivtv-tune.c
(witch is well written and completly understandable code, even from a C
non-guru as me) line 166-169 currently reads:

        printf("%s: %.3f MHz", device, frequency/1000.0);
        if (vt.signal)
                printf("  (Signal Detected)");
        printf("\n");

Could this be changed to:

        printf("%s:\t%.3f MHz", device, frequency/1000.0);
        if (vt.signal)
                printf("\t(Signal Detected)");
        printf("\n");

that is - add a \t as a separator, as is done in the channel/frequency
listings? That would make the output much easier to parse (even if would
have to make a check for the output of ivtv-tune --version, and if
version is *fixed*, then parse with .split("\t"), else do some magic i
haven't figured out yet. It will be uglier, that is for sure...

Just rigth now i'm only looking to check for the "(Signal detected)"
part, as i want to set a flag if there is a signal on the channel, so
that shouldn't be to hard...

You may anticipate a small command-line frequency/channel scanning
utility coming to this mailinglist Pretty Soon Now ;) - complete with
both main(String[] args) so it can be run stand-alone, and an externaly
accessible API to be embedded in the upcomming gtk tuner app :)

If there is any chance for CVS/SVN access at the ivtv site, that migth
be a good place to host it. Or i may try to get a sf.net site (if i can
remember my sf.net password...)

--- Kyrre


_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to