打印

USB AUDIO

[复制链接]
198|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
张さん|  楼主 | 2018-7-11 11:46 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
IO, USB, sam, TE, RAM
例程里面USB声卡是48k16位的,现在想准备改成24位的,除了修改描述符,还需要修改什么吗?求路过的大佬给讲讲!谢谢
  0x0B,                                 /* bLength */
  0x24,      /* bDescriptorType */
  0x02,          /* bDescriptorSubtype */
  0x03,                /* bFormatType */
  0x02,                                 /* bNrChannels */
  0x02,                                 /* bSubFrameSize :  2 Bytes per frame (16bits) */
  16,                                   /* bBitResolution (16-bits per sample) */
  0x01,                                 /* bSamFreqType only one frequency supported */
  SAMPLE_FREQ(USBD_AUDIO_FREQ),         /* Audio sampling frequency coded on 3 bytes */
把这段描述符修改成了
  0x0B,                                 /* bLength */
  0x24,      /* bDescriptorType */
  0x02,          /* bDescriptorSubtype */
  0x03,                /* bFormatType */
  0x02,                                 /* bNrChannels */
  0x03,                                 /* bSubFrameSize :  2 Bytes per frame (16bits) */
  24,                                   /* bBitResolution (16-bits per sample) */
  0x01,                                 /* bSamFreqType only one frequency supported */
  SAMPLE_FREQ(USBD_AUDIO_FREQ),         /* Audio sampling frequency coded on 3 bytes */
除了修改这段描述符,其他的描述符或者其他的还需要修改吗?

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

448

主题

464

帖子

1

粉丝