安卓OpenAL? [英] Android OpenAL?

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

问题描述

有没有人为 Android 构建过 OpenAL,或者在系统上找到了它的共享库?这似乎是任何类型游戏的明显需求,但没有可用的资源.似乎Android java声音库无法根据我的说法进行音调变化,因此似乎需要OpenAL.我知道 OpenAL Soft 可以建立在 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.

如果有关于在没有 OpenAL 的情况下在 Android 上进行声音操作的好指南,那也很好.只是 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 从 API 级别 9 (2.3) 开始是 NDK 的官方部分.更多信息此处.

OpenAL Soft 在其 git master 中有一个 OpenSL ES 后端(从 1.13 版开始未发布).然而,此时它在 Android 上被破坏了,因为它是为 OpenSL ES 1.1 而不是 1.0.1 编写的.请参阅此提交以获得修复.

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.

正如之前的回答中提到的,OpenAL Soft 的 JNI 后端链接并描述了 此处 作为 OpenAL 在 2.3 之前的 Android 平台上的唯一选项.但是,这是 OpenAL Soft 的过时分支 - 我已将后端更新到最新版本 在此处的 github 存储库上 以及 OpenSL ES 1.0.1 修复.还包括一个未经测试的可选补丁,声称可提供更好的性能和更少的延迟.

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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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