Hi Patrick, Im not sure how you could do that, but I think using a background (worker-)thread that does the hard-work and a filling thread (read from device) should help. Also if you do buffer copying try double buffering. That must help. Cheers Muthu --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20060705/8cfe4e1e/attachment.htm