简体   繁体   English

什么是音频端点?

[英]What is [not] an audio endpoint?

Selectively quoting a blog piece entitled What's an audio endpoint by one of the chief architects of the post-XP Windows audio system: XP后Windows音频系统的首席架构师之一选择性地引用了一篇博客文章,题为“ 什么是音频端点”

  • an endpoint is a "piece of plastic" (hopefully with some wires in it) "to which users relate" such as "the microphone or headset connected to your laptop". 端点是与用户相关的“塑料”(希望其中有一些电线),例如“与笔记本电脑相连的麦克风或耳机”。

Which sounds great. 听起来不错。 Except that on every desktop machine I have ever used in the past 15 years, there has been a microphone AND a line-in input jack, and they exist (at least in my mind) with equal status. 除了过去15年来我使用过的每台台式机上,都有一个麦克风和一个线路输入插孔,并且它们(至少在我看来)处于同等地位。 As a user, I strongly relate to "pieces of plastic" I connect to the line-in jack. 作为用户,我非常喜欢连接到输入插孔的“塑料件”。 They certainly look very much like an audio endpoint to me. 在我看来,它们当然非常像音频端点。 The trouble is: 问题是:

  • When I use IMMDeviceEnumerator and IMMDeviceCollction to discover the devices on my desktop machine, and use Microsoft's own example code to do so (eg the "CaptureSharedTimerDriven" audio sample in Microsoft's SDK) they only list the microphone as an endpoint. 当我使用IMMDeviceEnumeratorIMMDeviceCollction发现台式机上的设备,并使用Microsoft自己的示例代码进行此操作(例如Microsoft SDK中的“ CaptureSharedTimerDriven”音频示例)时,它们仅将麦克风列为端点。

So if my line-in jack is NOT an audio endpoint, what is it, how do I access it, set the volume on it, and so on? 因此,如果我的输入插孔不是音频端点,那是什么,如何访问它,设置其音量等等? How can I make an application use it (exclusively) even when a user has selected the microphone as the default endpoint? 即使用户选择了麦克风作为默认端点,我如何才能使应用程序(专用)使用它?

Partial (and perplexing) answer: it is possible for a microphone to be listed as an audio endpoint even when there is nothing connected to the microphone jack, but a line-in input might only be listed and confirm itself as a legitimate audio endpoint when there is a device physically connected to the line-in jack. 部分(和困惑)答案:即使没有任何连接到麦克风插孔,也有可能将麦克风列为音频端点,但是只有当输入线路输入时才会列出,并在出现以下情况时将其确认为合法的音频端点有一个设备物理连接到输入插孔。 This makes no obvious sense, but is nonetheless the way things are... at least on my machine. 这没有明显的意义,但至少是在我的机器上,还是这样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM