>
> If you are at all familiar with C, it should be pretty easy to just
> modify the ivtv-tuner-play code in the src directory to handle this.
>
> Let me know if you need help.
>
> I would happily include your changes in the distribution.
>
I wouldn't say "familiar", but I did some experimenting and got some
interesting results. This device is controlled through the USB port, but
it returns audio through the line-in. So I tried this:
/* preliminary hack to read from audio line in -- [EMAIL PROTECTED] */
if (-1 == (input_fd = open(input_device_name, O_RDONLY))) {
perror("radio");
fprintf(stderr, "Cannot open %s for reading, trying audio device
instead\n",
input_device_name);
sprintf(input_device_name,"/dev/audio");
if (-1 == (input_fd = open(input_device_name, O_RDONLY))) {
perror("radio");
fprintf(stderr, "Cannot open %s for reading either, giving up\n",
input_device_name);
}
close(tuner_fd);
exit(-1);
}
which causes the radio to start playing through the server's sound card.
However, ivtv-tuner-play is obviously not reading from that source. I
tried a few different approaches as well, such as calling the device
directly via
/dev/snd/pcmC0D0c, but all I managed to do was make /dev/radio0 quit
answering tuning requests from ivtv-tuner-play (kradio continues to work
fine, and is in fact necessary to close the radio after each experiment).
--
Jack Coates At Monkeynoodle Dot Org: It's A Scientific Venture!
"I spent all me tin with the ladies drinking gin, so across the Western
ocean I must wander" - traditional
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins