简体   繁体   English

从 Android 应用程序发送 OSC(打开声音控制)消息

[英]sending OSC (open sound control) messages from an android application

I'm writing an android application using the SDK for android 4.0我正在使用适用于 android 4.0 的 SDK 编写一个 android 应用程序

I wonder if there is an API for sending OSC messages (Open Sound Control) in the android SDK or should I just use the java OSC SDK.我想知道android SDK中是否有用于发送OSC消息(Open Sound Control)的API,还是我应该只使用java OSC SDK。

I tried browsing the http://opensoundcontrol.org/introduction-osc and under implementations I found the following: http://www.illposed.com/software/javaosc.html我尝试浏览http://opensoundcontrol.org/introduction-osc并在实现中发现以下内容: http : //www.illposed.com/software/javaosc.html

so I just wonder if I should use JavaOSC, some other library or if maybe android comes with it's own API for sending OSC messages.所以我只是想知道我是否应该使用 JavaOSC,其他一些库,或者 android 是否应该使用它自己的 API 来发送 OSC 消息。

any information regarding the issue would be greatly appreciated.任何有关该问题的信息将不胜感激。

thank you谢谢

kfir克菲尔

No , there is no API within Android itself to broadcast OSC messages.,Android 本身没有 API 来广播 OSC 消息。 And yes it seems that currently the only way is JavaOSC.是的,目前似乎唯一的方法是 JavaOSC。

Here is an app, FingerPlay MIDI , which uses OSC message in order to communicate over WIFI.这是一个应用程序, FingerPlay MIDI ,它使用 OSC 消息以通过 WIFI 进行通信。 Check its source code at http://code.google.com/p/fingerplaymidi/source/browse/ and find out how to use JavaOSC in your code.http://code.google.com/p/fingerplaymidi/source/browse/查看其源代码,并了解如何在您的代码中使用 JavaOSC。

Here is library I wrote specifically with Android in mind.这是我专门为 Android 编写的库。

https://github.com/alistairrutherford/osc-tools https://github.com/alistairrutherford/osc-tools

I have a sample application which uses this here.我有一个示例应用程序在这里使用它。

https://github.com/alistairrutherford/tonome https://github.com/alistairrutherford/tonome

我的解决方案是在 Android 模式下使用带有库 OscP5 的 Processing IDE。

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

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