cjcliffe / CubicSDR

Cross-Platform Software-Defined Radio Application
http://www.cubicsdr.com
GNU General Public License v2.0
2.07k stars 256 forks source link

how about making demodulator audio streams redirect to some socket port #493

Open iglooxpp opened 7 years ago

iglooxpp commented 7 years ago

Great work! CubicSDR is handy and very helpful:) is there a plan to make it able to redirecting demodulator audios to network or just streaming to disk files?

cjcliffe commented 7 years ago

Thanks @iglooxpp -- glad it's working for you 👍

I think there was an item on the original ideas list or buried in another issue here about making it stream to a network port; given that the mixing is all internal I can't see it being a stretch to let you add one or more networked audio outputs and choose them from the per-demodulator "Audio Out" drop-down.

Issue #207 will eventually cover redirecting to block devices / files and #339 and #426 should cover recording I/Q stream and demod output to files.

And is there a specific application / protocol you're trying to target or just hoping for a basic broadcast to a UDP port?

iglooxpp commented 7 years ago

@cjcliffe, issue #426 & #207 is close, and so happy to hear it is already on your list 👍 . By now I don't have such a protocol or specific application yet, but it will be soon, as the data streaming begin to work, there would be more scenarios with CubicSDR 🥇 ; yes, please let multiple demodulators' audio broadcast to some ports (at the same time). Excellent work!

refutationalist commented 7 years ago

I was considering about asking for JACK audio support as a method to do a lot of these things. Each demod could define it's own port in JACK, and it can be routed wherever is necessary.

cjcliffe commented 7 years ago

@refutationalist JACK is already supported but has not been compiled in by default; I'll see what I can do for the next OSX / Linux builds if it can be compiled in.

vsonnier commented 6 years ago

@cjcliffe @iglooxpp FYI A recent article on rtl-sdr.com NEW AUDIO STREAMING TCP SERVER PLUGIN FOR SDR# presents how SDR# can serve audio streams in TCP and how they can be received by VLC for instance.

Similarily CubicSDR could implement a TCP server streaming solution, or even UDP.

wxWidgets Networking stack seems to be adequate to implement both a TCP server and UDP streaming in a portable way.