|
From: Black M. <bla...@ho...> - 2006-03-03 01:50:57
|
Hi, im new to using libusb, but under windows I tryed the following code int readval = usb_bulk_read(udev, 0x83, buff,64, 10); (yadayadayada, some other code that has a timeout of 10ms) And.. it causes my whole PC to 'stutter' even winamp has audio suttering artifacts. Thread was started with 'THREAD_PRIORITY_IDLE' and while it doesnt affect all mp3's it sure screws up alot of them, even tho I have a giant 300ms buffer set in winamp. So basicly I was wondering was A: is there a way to prevent this stuttering. B: is there a way to see if a read is even avilable before doing an actual read request? my device rarely sends packets, but when it does they have to be received asap. Iv commented out that line and the stuttering goes away. I realise this may be a problem with the win32 port of it, but I think an 'isdataavilable' sorta function might help in the core API. (Please don't use my nameing, I suck at nameing things!) |