|
From: <aa...@bo...> - 2001-05-03 21:27:32
|
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. However, when processing
gets behind, I need to be able to BUFFER incoming data.
Its OK for my processing to get several SECONDS behind the
real-time stream, but I cannot just dump audio samples when this
happens. I need to buffer them up, and have the analysis catch up
to the real-time stream later.
Can anybody provide advise about how to go about this.
Can I use SOX? Can I modify SoX (make large input buffer?)
to handle this? Can I learn how to do this from the SoX source?
Should I be looking into Real-Time linux extensions to maintain
a LARGE circular buffer of incoming audio data in Real-Time/Kernel space
shared memory? If so... any suggestions about where to learn
about this?
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?
aaron
|