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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-02-2020, 08:36 PM
|
#1
|
Member
Registered: Apr 2004
Location: USA
Distribution: Mint 19 Cinnamon
Posts: 75
Rep:
|
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.
|
|
|
03-02-2020, 11:26 PM
|
#3
|
Member
Registered: Aug 2007
Posts: 483
Rep: 
|
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.
|
|
|
03-03-2020, 08:34 AM
|
#4
|
Member
Registered: Aug 2007
Posts: 483
Rep: 
|
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.
|
|
|
03-03-2020, 11:51 AM
|
#5
|
Member
Registered: Apr 2004
Location: USA
Distribution: Mint 19 Cinnamon
Posts: 75
Original Poster
Rep:
|
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 12:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|