UAC麦克见音频数据格式FORMAT_TYPE_I
2021-07-23
572
0
#define DECLARE_UAC_FORMAT_TYPE_I_DISCRETE_DESC(n)\ struct uac_format_type_i_discrete_descriptor_## n {\
__u8 bLength;\
__u8 bDescriptorType;\
__u8 bDescriptorSubtype;\
__u8 bFormatType;\
__u8 bNrChannels;\
__u8 bSubframeSize;\
__u8 bBitResolution;\
__u8 bSamFreqType;\
__u8 tSamFreq[n][3];\
}
__attribute__((packed))
static struct uac_format_type_i_discrete_descriptor_1 microphone_as_type_i_desc = {.bLength = UAC_FORMAT_TYPE_I_DISCRETE_DESC_SIZE(1),
.bDescriptorType = USB_DT_CS_INTERFACE,
.bDescriptorSubtype = UAC_FORMAT_TYPE,
.bFormatType = UAC_FORMAT_TYPE_I,
.bNrChannels = 1,
.bSubframeSize = 2,
.bBitResolution = 16,
.bSamFreqType = 1,
};
UAC麦克见音频数数据格式FORMAT_TYPE_I各字段的描述详见:http://www.usbzh.com/article/detail-184.html
模拟设备信息(Free Device Monitoring Studio 抓取
- descriptors[8] = “Class-Specific Interface Descriptor”
- bLength = 11
- bDescriptorType = CS_INTERFACE (36)
- bDescriptorSubtype = 2
- as_interface =
- bFormatType = 1
- bNrChannels = 1
- bSubslotSize = 2
- bBitResolution = 16
- bSampleFreqType = 1
- sample_freq = “16000 Hz”
- aSampleFreq = 128, 62, 0
HID人机交互QQ群:564808376
UAC音频QQ群:218581009
UVC相机QQ群:331552032
BOT&UASP大容量存储QQ群:258159197
STC-USB单片机QQ群:315457461
USB技术交流QQ群2:580684376
USB技术交流QQ群:952873936