OpenAL for CrossPlatform Development

时间:2012-05-30 19:10:14

标签: android ios audio cross-platform openal

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

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

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

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

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

2 个答案:

答案 0 :(得分:9)

我使用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。

答案 1 :(得分:1)

从版本1.1打开AL显然不再是免费软件。早期版本的Open AL(1.0和之前我认为)拥有BSD许可证,现在它已被Creative版权所有。尽管它打开了#34;前缀,它不再是免费的。以下是1.1版许可证的第一部分,取自" SDK安装程序"来自this link

    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的引擎源代码中找到它。

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