Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenAL for CrossPlatform Development

OpenAL is one confusing project to pull up relevant information on. Is there an official OpenAL anymore? What is creativelabs control over the project?

I am looking for a cross platform audio library to support IOS (iPhones, Ipads), Android, Windows and Linux.

Does OpenAL fill this need? What is OpenAL's license? Although we intend to release some of our source code we have no interest in being forced to because of a license conflict.

There is enough evidence for me to assume it is working on Android Relevant links (Android OpenAL?) plus google searches yield positive results.

I realize Android has OpenSL officially supported. However Android appears to be the only platform which supports OpenSL currently so this is not an option.

like image 310
Halsafar Avatar asked May 30 '12 19:05

Halsafar


People also ask

What is OpenAL and do I need it?

OpenAL (Open Audio Library) is a cross-platform audio application programming interface (API). It is designed for efficient rendering of multichannel three-dimensional positional audio.

Is OpenAL deprecated?

The OpenAL framework is deprecated and remains present for compatibility purposes.

Why is OpenAL installed?

It is dedicated to displaying multichannel three-dimensional positional audio, which is also why sometimes Open al program is embedded in your PC. So when you want to play games you will need OpenAL.


2 Answers

I went with OpenAL-soft and OpenAL for windows. They are both the same interface so still one code base.

Android was easy. https://github.com/AerialX/openal-soft-android

IOS was even easier. You can add OpenAL.Framework to your XCode project. The header location is just different (OpenAL/al.h vs AL/al.h).

Linux is very easy. Install the openal dev package for your distro.

Windows was the biggest pain for OpenAL. In the end just install the original OpenAL SDK from creative. OpenAL does seem very choppy on Windows though. I get some popping and crackles now and then where on every other platform it is perfect. I might switch to OpenAL-soft for the windows distribution before release.

like image 168
Halsafar Avatar answered Sep 23 '22 00:09

Halsafar


Since version 1.1 Open AL apparently isn't free software anymore. Previous versions of Open AL (1.0 and previous I think) had BSD license, now it has been copyrighted by Creative. Despite it's "open" prefix, it's not free anymore. Here is the first section of the license for 1.1, taken from the "SDK installer" from 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.

So if you want to use an open source royalty free version, you can only use it for the previous versions of Open AL. Which I can only find from the Quake 3's engine source code.

You might want to explore some other alternatives.

like image 40
JohnJohn Avatar answered Sep 24 '22 00:09

JohnJohn