[AG-TECH] tell rat to read audio from a pipe

Robert Olson olson at mcs.anl.gov
Mon Apr 12 14:10:41 CDT 2004


That is likely to be difficult; rat has some fairly deep assumptions within 
that the device it's getting samples from is a full-duplex audio device.

However, I think there might be some code in there that handles the binding 
of two half-duplex devices to make a single full-duplex one, though I've 
not used it.

You might also consider not using rat to send that audio; rather, write an 
app using the libcommon RTP library to send the audio packets out directly. 
You'd have to package them up with an appropriate encoding (linear 16bit is 
easy) and with the right packet type.

--bob

At 02:05 PM 4/12/2004, Frank Sweetser wrote:
>I'm trying to do some audio pre-processing with the audio stream before it 
>gets
>to rat, and I'm having difficulty.  Basically, rat keeps insisting upon doing
>its own search for audio devices, while I need to forcibly tell it to read its
>input stream from a named pipe.  Does anyone have a good way of doing this?




More information about the ag-tech mailing list