OpenAL的的Andr​​oid? [英] Android OpenAL?

查看:241
本文介绍了OpenAL的的Andr​​oid?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人建造的OpenAL为Android,或者为它找到系统上的共享库?这似乎是一个游戏的任何种类的明显需要,但是没有资源在那里吧。这似乎在Android的Java音色库不能做的我可以告诉音高变化,因此似乎有必要的OpenAL。我知道OpenAL的软可以建立在ALSA之上,但我不知道,如果任何人这样做了,而且我敢肯定,它会带我一个月的时间。

Has anyone built OpenAL for the Android, or found the shared library for it on the system? This seems like an obvious need for a game of any kind, yet there's no resources out there for it. It seems the Android java sound library can't do pitch changes from what I can tell, so there seems a need for OpenAL. I know OpenAL Soft can be built on top of ALSA, but I'm not sure if anyones done that, and I'm sure it would take me a month.

如果有一个很好的指导某处声音处理对Android没有OpenAL的,那也没关系。这只是OpenAL的是那种对游戏厂商的一个标准,这将是不错的口我千行过这个系统,那种我认为是NDK的前点我荣登网站进去看,发现里面几乎没有在系统上的共享库的访问。

If there's a good guide somewhere on sound manipulation on the Android without OpenAL, that's fine too. It's just that OpenAL is sort of a standard for game makers and it would be nice to port my thousands of lines over to this system, which I sort of thought was the point of the NDK before I dugg into it and saw that there's almost no shared library access on the system.

谢谢..我希望我能真正端口,而不成为Java专家自己。真的不喜欢的NDK为止!

Thanks.. I hope I can actually port without becoming a java expert myself. Really disliking the NDK so far!

推荐答案

有几个选项现在可用于NDK音频:

A few options are available now for NDK audio:

  1. 这不是OpenAL的,但OpenSL ES 1.0.1是NDK作为API 9级(2.3)的正式组成部分。这里更多信息

  1. It's not OpenAL, but OpenSL ES 1.0.1 is an official part of the NDK as of API level 9 (2.3). More information here.

OpenAL的软都有一个OpenSL ES的后端在其git的主(没有公布为1.13版)。然而在这个时候破碎Android电子的,因为它为OpenSL ES 1.1,不1.0.1写入。请参阅<一href="https://github.com/AerialX/openal-soft-android/commit/651f52df1201368524ca0df825f95afeba962fa3">this提交的修补程序。

OpenAL Soft has an OpenSL ES backend in its git master (not released as of version 1.13). It is however at this time broken on Android, as it is written for OpenSL ES 1.1, not 1.0.1. See this commit for a fix.

正如前面提到的previous答案,JNI的后端OpenAL的软链接到和描述的此处作为OpenAL的在pre-2.3的Andr​​oid平台的唯一选择。然而,这是一个过时的叉OpenAL的软的 - 我已经在这里在github上回购一>随着OpenSL ES 1.0.1修复。还包括一个<一个href="https://github.com/AerialX/openal-soft-android/commit/5fae12e4ab0ebf0781a0a7a6d96a10e19008dc23">untested可选的补丁声称可以提供更好的性能和更短的延迟。

As mentioned in a previous answer, a JNI backend for OpenAL Soft is linked to and described here as the only option for OpenAL on pre-2.3 Android platforms. However, this is an outdated fork of OpenAL Soft - I've updated the backend to the latest version on a github repo here along with the OpenSL ES 1.0.1 fix. Also included is an untested optional patch that claims to provide better performance and less latency.

这篇关于OpenAL的的Andr​​oid?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆