On 12/26/2015 05:10 PM, John Stoffel wrote:
"Andy" == Andy Stewart <andystewart@comcast.net> writes:
Andy> Hi gang,
Andy> I think I need something like the Virtual audio cable, but I'd like to Andy> know if there are other possibilities.
Andy> I have two audio programs that I want to talk to each other: gqrx and Andy> Dream.
Andy> gqrx is a software defined radio receiver that can save its audio as a Andy> WAV file, or it can stream audio via a UDP port.
Andy> Dream is a digital radio mondiale (DRM) decoder. Digital radio mondiale Andy> is a shortwave radio broadcast in a digital format. Dream can read a Andy> WAV file, or it can read audio information from the microphone. It Andy> outputs a rather nicely sounding radio broadcast (mono or stereo Andy> depending on the broadcaster) with no static and no fading.
Andy> I have succeeded in recording gqrx audio to a WAV file, and later having Andy> Dream decode it.
Andy> What I want to do is listen to the DRM broadcast in real time. I was Andy> unsuccessful in getting Dream to read the WAV file while it was being Andy> written.
Andy> Does anybody have any suggestions as to how this could be done?
Have you tried setting up a FIFO that each program opens and treats as a WAV file? That might be the way to have them talk to each other.
mkfifo /var/tmp/radio gqrx --output /var/tmp/radio mondiale --input /var/tmp/radio
though I havent' a clue what the two programs do at the commmand level.
Hi John, That is an interesting idea but gqrx doesn't let the user pick a file name for saving the WAV audio. It creates a file name by an internal algorithm. All I can do is pick the directory in which that file is saved. Is there a way that I can tie a file to a UDP port? gqrx will output an audio stream on a UDP port. If I can make that look like a file, perhaps "mondiale" will consume it. Andy -- Andy Stewart (KB1OIQ) Founder: Worcester Linux Users' Group Founder: Chelmsford Linux Meetup Group President: PART of Westford, MA (WB1GOF)