简体   繁体   English

C#中的蓝牙支持

[英]Bluetooth support in C#

I am looking for a Bluetooth stack for C# that will allow me to route audio from my phone to my computer, as well as use my microphone on my computer(Windows 7) as an input device for phone calls on my phone. 我正在为C#寻找一个蓝牙堆栈,它允许我将音频从手机传送到我的电脑,以及将我的电脑上的麦克风(Windows 7)用作我手机上的电话呼叫输入设备。 I've looked at 32Feet.NET, but it does not seem to support audio channels. 我看过32Feet.NET,但它似乎不支持音频频道。 If I am wrong on this, someone please correct me. 如果我错了,请有人纠正我。 Otherwise, if there an alternate library for C# that I can use for Bluetooth support? 否则,如果有可用于蓝牙支持的C#备用库?

I'm afraid this probably doesn't really answer your question, but maybe adds some alternative perspective: The issues you're trying to solve seem to be supported by standard Bluetooth audio profiles. 我担心这可能没有真正回答你的问题,但可能会增加一些替代观点:你试图解决的问题似乎得到标准蓝牙音频配置文件的支持。 As such, there are chances they're provided by the OS's (or other vendor's) Bluetooth stack in a transparent manner, ie as audio device like the system's sound card. 因此,它们有可能以透明的方式由OS(或其他供应商)的蓝牙堆栈提供,即作为系统声卡之类的音频设备。

If there is no urgent reason for a custom implementation of these Bluetooth profiles, you might be better off looking for .NET methods that configure the audio devices your code uses for audio input/output. 如果没有紧急的理由自定义实现这些蓝牙配置文件,您可能最好寻找配置代码用于音频输入/输出的音频设备的.NET方法。 You would then use Bluetooth audio in the same way you access other audio devices, basically reducing your code to proxy audio from one audio device (sound card) to another (Bluetooth audio). 然后,您将以与访问其他音频设备相同的方式使用蓝牙音频,基本上减少了代码以将音频从一个音频设备(声卡)代理到另一个音频设备(蓝牙音频)。

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

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