LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   FM radio under WINE? (https://www.linuxquestions.org/questions/linux-hardware-18/fm-radio-under-wine-4175670625/)

mstrimel 03-02-2020 08:36 PM

FM radio under WINE?
 
hi,
I have a TV card with a bt878 chip. Linux automatically sets up the FM radio portion of the card (yay, linux!)

Code:

mary@mybox:~$ dmesg | grep radio
[  24.360809] tveeprom: has radio
[  24.399322] msp3400 10-0040: MSP3435G-B6 found on bt878 #0 [sw]: supports radio, mode is autodetect and autoselect
[  24.516986] bttv: 0: registered device radio0

Now, there is a little Windows program that I want to use called radiodelay. The purpose is to get my baseball audio feed to sync with the television. [The radio broadcasters are good and the TV guys are insufferable].

Radiodelay does not "see" the tuner. Is it even possible to get /dev/radio0 to be "visible" to a WINE program? How would I go about doing that?

Thanks in advance.

jefro 03-02-2020 10:11 PM

It's sometimes hard to get wine to see physical hardware. There is a web page devoted to different radio so maybe it can work. http://radiomobile.pe1mew.nl/?How_to:Wine

Have you considered trying linux fm software? https://linuxtv.org/wiki/index.php/R...ening_Software

tofino_surfer 03-02-2020 11:26 PM

Quote:

Now, there is a little Windows program that I want to use called radiodelay. The purpose is to get my baseball audio feed to sync with the television. [The radio broadcasters are good and the TV guys are insufferable].

Radiodelay does not "see" the tuner. Is it even possible to get /dev/radio0 to be "visible" to a WINE program? How would I go about doing that?
You don't need any "Windows" program to do something as trivial as this. Programs such as mplayer can both play radio from a device such as /dev/radio0 and allow a users to specify an audio delay.

From the mplayer manpage:
Code:

      mplayer radio://[channel|frequency][/capture] [options]


      -radio <option1:option2:...> (radio only)
              These options set various parameters of the radio capture module.  For listening to radio with MPlayer use 'radio://<frequency>' (if channels option is not given) or
              'radio://<channel_number>'  (if  channels  option is given) as a movie URL.  You can see allowed frequency range by running MPlayer with '-v'.  To start the grabbing
              subsystem, use 'radio://<frequency or channel>/capture'.  If the capture keyword is not given you can listen to radio using the line-in cable only.  Using capture to
              listen is not recommended due to synchronization problems, which makes this process uncomfortable.

              Available options are:

                device=<value>
                      Radio device to use (default: /dev/radio0 for Linux and /dev/tuner0 for *BSD).

              + and -
                  Adjust audio delay by +/- 0.1 seconds.


tofino_surfer 03-03-2020 08:34 AM

Mplayer is one of the options in the list of Linux FM software posted by jefro in post #2. From a link on this page:

Code:

Using MPlayer for Radio Listening

You can do a lot of things with MPlayer. An example of commandline syntax used for radio listening is:

mplayer -rawaudio rate=48000 radio://2/capture -radio adevice=hw=2:arate=48000:channels=93.8-Radio_Zones,94.7-SSR_1

Note that this command will work even without audio cable between the output of the radio card and a line input of the audio card.

This will start MPlayer with sample rate = 48 kHz (using the same sample rate that the sound card is using gives best results), listening to the second station on the list, the tuner is the third sound card (ALSA device hw:2). For more examples and syntax: MPlayer radio tips.

You can add as many stations as wanted and use LIRC to control MPlayer.

If you are, say, running JACK all the time, you can add

ao=jack,alsa

into ~.mplayer/config (for MPlayer) and mplayerplug-in.conf (for Firefox mplayerplug-in). For recording, you can use any JACK aware recording application.

A XDialog wrapper can be made for radio listening using MPlayer and v4l2-ctl. The authour found that it was so good that they decided to make it public under the name XDRadio. You will have to make a list of your stations during the installation (very easy to do). After that, all that is required is to just to run it and enjoy the radio.

As previously shown it is very easy to add audio delays with Mplayer with the '+' and '-' keys.

Code:

+ and -
                  Adjust audio delay by +/- 0.1 seconds.


mstrimel 03-03-2020 11:51 AM

Thanks very much for your help. It looks like mplayer is a supported way to do what I need. I was hoping for a gui, so i will have to check and see if the "+" and "-" buttons can adjust the delay while using the XDRadio graphical version. the amount of lag time for my feed seems to jump around a bit, especially during commercials.
Thanks again!


All times are GMT -5. The time now is 07:23 AM.