LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-02-2020, 08:36 PM   #1
mstrimel
Member
 
Registered: Apr 2004
Location: USA
Distribution: Mint 19 Cinnamon
Posts: 75

Rep: Reputation: 0
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.
 
Old 03-02-2020, 10:11 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
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
 
Old 03-02-2020, 11:26 PM   #3
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
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.

Last edited by tofino_surfer; 03-02-2020 at 11:29 PM.
 
Old 03-03-2020, 08:34 AM   #4
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
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.

Last edited by tofino_surfer; 03-03-2020 at 08:35 AM.
 
Old 03-03-2020, 11:51 AM   #5
mstrimel
Member
 
Registered: Apr 2004
Location: USA
Distribution: Mint 19 Cinnamon
Posts: 75

Original Poster
Rep: Reputation: 0
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Podcast, LQ Radio, LQ Radio Jukebox forthcoming boomster LQ Suggestions & Feedback 10 09-19-2010 06:10 PM
LQ radio, podcast, Radio Jukebox portamenteff LQ Suggestions & Feedback 2 01-04-2010 05:10 AM
What is 'FM digital radio, not DAB' and radio card setup? lugoteehalt Linux - Hardware 3 08-22-2008 09:36 AM
LXer: Bah humbug commercial radio, hurrah for Internet radio LXer Syndicated Linux News 0 05-02-2006 10:03 PM
X-Net Radio! Internet Radio with an attitude! xnetradio General 1 01-11-2004 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration