问题 OpenAL for CrossPlatform Development


OpenAL是一个令人困惑的项目,可以提取相关信息。是否有正式的OpenAL?什么是creativelabs控制项目?

我正在寻找一个跨平台音频库来支持IOS(iPhone,Ipads),Android,Windows和Linux。

OpenAL是否满足了这一需求?什么是OpenAL的许可证?虽然我们打算发布一些源代码,但由于许可证冲突,我们没有兴趣被迫使用。

有足够的证据表明我认为它正在使用Android相关链接(Android OpenAL?)加上谷歌搜索产生积极的结果。

我意识到Android已正式支持OpenSL。然而,Android似乎是目前唯一支持OpenSL的平台,所以这不是一个选项。


11016
2018-05-30 19:10


起源

您可以查看PortAudio是否支持iOS和Android - 它支持Windows,Linux和MacOS X,但它可能比OpenAL低级,我从未使用过。 PA有一个很好的类似BSD的许可证。我认为有人正在研究对Android的PA支持,虽然我很确定没有对iOS的支持,但是从旧的Mac OS X代码开始并让iOS工作也不难。还有rtaudio,这可能会更好。您还可以看到cinder和openframeworks使用的内容。 - Bjorn Roche


答案:


我使用OpenAL-soft和OpenAL for windows。它们都是相同的接口,因此仍然是一个代码库。

Android很简单。 https://github.com/AerialX/openal-soft-android

IOS更容易。您可以将OpenAL.Framework添加到XCode项目中。标题位置不同(OpenAL / al.h vs AL / al.h)。

Linux非常简单。为发行版安装openal dev软件包。

Windows是OpenAL最大的痛苦。最后,只需从广告素材安装原始OpenAL SDK即可。 OpenAL在Windows上看起来确实非常不稳定。我现在得到一些爆裂和噼啪声,然后在其他平台上它是完美的。在发布之前,我可能会为Windows发行版切换到OpenAL-soft。


9
2018-06-09 21:05



你在windows中使用openal-soft有什么问题,或者你有什么问题? - rogerdpack


自版本1.1开放AL显然不再是免费软件。早期版本的Open AL(1.0和之前我认为)拥有BSD许可证,现在它已被Creative版权所有。尽管它是“开放”的前缀,但它不再是免费的。以下是1.1版许可证的第一部分,取自“SDK安装程序” 这个链接

    LICENSE
    1.  Grant of License
        The Software is licensed, not sold, to you for use only under the
     terms of this Agreement.  This License Agreement is your proof of 
    license to exercise the rights granted herein and must be retained by 
    you.  As between you and Creative (and, to the extent applicable, its 
    licensors), Creative retains all title to and ownership of the Software 
    and reserves all rights not expressly granted to you.  The license under 
    this Section 1 is conditioned upon your compliance with all of your 
    obligations under this Agreement.  Creative grants to you the right to 
    use all or a portion of this Software provided that:

        (a) the Software is not distributed for profit;
        (b) the Software may NOT be modified;
        (c) all copyright notices are maintained on the Software;
        (d) the licensee/end-user agrees to be bound by the terms of this 
    agreement;
        (e) Creative's BBS/FTP/website are the only on-line sites where 
    Licensee may download electronic files containing the Software; and        
        (f) Licensee shall use the Software solely for the purpose of 
    developing Licensee applications compatible with Creative’s products, 
    unless otherwise agreed to by further written agreement from Creative.

因此,如果您想使用开源免版税版本,则只能将其用于以前版本的Open AL。我只能从Quake 3的引擎源代码中找到它。

您可能想要探索其他一些替代方案。


1
2017-09-19 09:34