对 Windows 如何获取音频线路名称感到困惑

发布于 2024-08-15 13:42:58 字数 447 浏览 5 评论 0原文

我对音频设备/线路/端点在 Windows (vista) 中的命名方式感到非常困惑。

  • 首先,我进入控制面板小程序“声音”。其中,我发现一根输入线实际上位于 USB 音频设备上。小程序中“录音设备”的名称为:
    麦克风
    3-USB音频设备 工作

  • 从waveInGetDeviceCaps我得到
    麦克风(3-USB音频设备请注意缺少右括号

  • 从 IMMDevice.IPropertyStore 中,我看到两个可以提取名称的属性。其中之一说
    麦克风
    另一个说 USB Audio Device

“3-”来自哪里?

I'm getting very confused about how audio devices/lines/endpoints are named in windows (vista).

  • First I go to the control panel applet "Sound". Among others, I find one input line that resides physically on a USB Audio Device. The name of the "recording device" in the applet is:
    Microphone
    3- USB Audio Device
    Working

  • From the waveInGetDeviceCaps I get
    Microphone (3- USB Audio Device please note the lack of closing parenthesis

  • From the IMMDevice.IPropertyStore, I see two properties that I can extract name. One of them says
    Microphone
    and the other says USB Audio Device

Where does that "3- " comes from?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠北森屋 2024-08-22 13:42:58

“3-”取决于您连接设备的 USB 端口。如果您将设备移至另一个 USB 端口,它将获得另一个编号。这是为了唯一标识连接到不同端口的相同设备。 CoreAudio API 使用真实 ID(非常类似于 GUID)来标识每个设备,因此不需要对设备名称中的差异进行编码。

请注意,这是我对使用 USB 声音设备以及 MME 和 CoreAudio API 的看法。真实的故事可能可以在 DDK 中找到,或者从 Microsoft 的人那里找到。

The "3-" depends on the USB port you connect the device to. If you move the device to another USB port it will get another number. This is to uniquely identify the same devices connected to different ports. The CoreAudio API uses a true ID (much like a GUID) to identify each device, so it doesn't need to encode the differences in the device name.

Mind you, this is my take on using USB sound devices and the MME and CoreAudio APIs. The true story can probably be found in the DDK, or from the folks a Microsoft.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文