|
|
the problem of Audio data receive
|
|
06/21/2009 3:31 AM
post32175
|
the problem of Audio data receive
Good afternoon!
I'm writing a program about Audio driver(Microphone).
I met some problems:
Audio data :(in Audio data receive end callback function)
i use usbd_urb_status()to got the urb's status ,status is USBD_URB_CMP_ERR,then i got the return of function :5(EIO)
.
i use the isco pipe to receive the data ,after i insertion the device.
i set the urb like this:
usbd_setup_isochronous(micro_info->urb_in,URB_DIR_IN|URB_ISOCH_ASAP|URB_SHORT_XFER_OK,0,rbuf,size);
is there any problem with my parameter or i need some other settings??
by the way:(if device is a multy devide)
usbd_select_config ()is used only once in the first insertion or need use it by every interface insertion .
I'm waiting for your requestion.
Thanks a lot!!!
|
|
|
|
|