|
From: linuxstc <sat...@gm...> - 2013-11-27 06:35:48
|
How to play a audio file(bytes read from a wav file) using libusb on a connected USB headset, I have tried using the ISynchronous transfer to do, but the audio is not heard from USB headset. Iam reading the 200 bytes(because known by wMaxPacketSize from device) from wav file and sending the bytes to usb headset till all the bytes complete. Please have a look in the code and do let me know is anything going wrong ??? USB Headsetdetails Endpoint Descriptor 01 1 Out, Isochronous, 1 ms Offset Field Size Value Description 0 bLength 1 09h 1 bDescriptorType 1 05h Endpoint 2 bEndpointAddress 1 01h 1 Out 3 bmAttributes 1 09h Isochronous, Adaptive, Data 1..0: Transfer Type ......01 Isochronous 3..2: Sync Type ....10.. Adaptive 5..4: Usage Type ..00.... Data 7..6: Reserved 00...... 4 wMaxPacketSize 2 00C8h 200 bytes 6 bInterval 1 01h 1 ms 7 bRefresh 1 00h 8 bSynchAddress 1 00h attached code as wel -- View this message in context: http://libusb.6.n5.nabble.com/libusb-audio-capture-tp5711639p5712655.html Sent from the LibUSB Dev mailing list archive at Nabble.com. |