简体   繁体   English

Android:可以将蓝牙连接到自己吗?

[英]Android: Possible to connect bluetooth to self?

At the beginning of this year, I tried to implement an android-app which could stream ALL system-audio to a remote system. 今年年初,我尝试实现一个android-app,该应用程序可以将所有系统音频流式传输到远程系统。

This was not easy because (at that time) there was no way to get all system-audio. 这并不容易,因为(当时)无法获得所有系统音频。 So I developed a kernel-module which hijacked the audio. 因此,我开发了劫持音频的内核模块。

But it was a bit buggy and hard to release. 但这有点漏洞,而且很难发布。

So I stopped work on it. 所以我停止了工作。

But now, some months later I wonder if it is possible to: 但是现在,几个月后,我想知道是否有可能:

Connect via bluetooth to myself (= simulate bluetooth), because then I can forward system-audio to it via API and then fetch it on the other side. 通过蓝牙连接到我自己(=模拟蓝牙),因为这样我就可以通过API将系统音频转发给它,然后从另一端获取它。

Anyone an idea? 有人知道吗?

I doubt it. 我对此表示怀疑。 For a couple of reasons there is no loopback device for Bluetooth (see here also), which you would basically want to use. 出于几个原因,没有用于蓝牙的环回设备(另请参见此处 ),您基本上希望使用该设备。

You might try looking into using PulseAudio as a replacement for Android's AudioFlinger, as Pulse offers a loopback module for Linux at least. 您可能会尝试使用PulseAudio替代Android的AudioFlinger,因为Pulse至少为Linux提供了回送模块。

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

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