wb2osz / direwolf

Dire Wolf is a software "soundcard" AX.25 packet modem/TNC and APRS encoder/decoder. It can be used stand-alone to observe APRS traffic, as a tracker, digipeater, APRStt gateway, or Internet Gateway (IGate). For more information, look at the bottom 1/4 of this page and in https://github.com/wb2osz/direwolf/blob/dev/doc/README.md
GNU General Public License v2.0
1.56k stars 305 forks source link

Audio output via stdout and UDP #440

Open ars-ka0s opened 1 year ago

ars-ka0s commented 1 year ago

Working on a project where I need to be able to pipe audio both into and out of direwolf.

Sending audio to stdout means status text needs to redirect to stderr, so also added command-line option to redirect the output of dw_printf and the color escape sequences.

Since the buffer operations were pretty much identical, went ahead and added UDP sending as an audio output option as well. I'm not aware of any utilities available that can do anything with UDP sent data like that to try to test against though.

I've tried to test as much as possible for both outputs on Windows and Linux, including sending back and forth between the two platforms, but I don't have a Mac available to check if they work on that side.

If something looks weird or prefer to be implemented in a different way, I'm glad to continue to edit.

ars-ka0s commented 1 year ago

Rebased to current dev

ars-ka0s commented 1 year ago

Rebased to current dev.