Android OpenAL? [英] Android OpenAL?

查看:28
本文介绍了Android 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 后端链接并描述了 这里作为 2.3 之前的 Android 平台上 OpenAL 的唯一选项.但是,这是 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.

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

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