Using threads for audio computing?

lgabiot lgabiot at hotmail.com
Mon May 12 02:02:01 EDT 2014


Le 12/05/14 07:58, Chris Angelico a écrit :

> Well, the first thing I'd try is simply asking for more data when
> you're ready for it - can you get five seconds' of data all at once?
> Obviously this won't work if your upstream buffers only a small
> amount, in which case your thread is there to do that buffering; also,
> if you can't absolutely *guarantee* that you can process the data
> quickly enough, every time, then you need to use the queue to buffer
> that.
>
> But otherwise, it sounds like a quite reasonable way to do things.
>
> ChrisA
>

Ok, thanks a lot!



More information about the Python-list mailing list