|
From: Chris B. <Chr...@fn...> - 2001-05-04 15:15:42
|
Aaron Birenboim wrote: > > I have an application which analyses an audio stream > on the fly. (You could say real-time). > The analysis can have varying processor load, depending > on the content of the audio stream. > > I CANNOT loose ANY audio data. If you must write a custom program then you might look on freshmeat.net for the program called wavrec. It is a threaded application and so uses 1 thread for reading audio data and 1 for writting audio data. This allows the reading portion to start queueing buffers when the writing is not fast enough. > SoX must have SOME buffering in order to be able to operate > under -t ossdsp. How does this work? Could my problem be solved > simply by increasing the size of this buffer? Unfortunately, SoX does not use any buffering beyond what the OSS driver supports and what libc provides for I/O. This just happens to be good enough for coping from disk<->soundcard on most modern fast computers in most cases. |