OpenAL

Last updated
OpenAL
Original author(s) Loki Software
Developer(s) Creative Technology
Stable release
1.1 (installer 2.1.0.0) [1] / November 2009;15 years ago (2009-11)
Written in C
Operating system 15 operating systems
See: Supported platforms
Type Application programming interface
License
  • Sample Implementation: Proprietary since v1.1, LGPL before v1.1, BSD in early versions [2]
  • "OpenAL" trademark: unclear, held by Creative Labs, Inc.
Website www.openal.org   OOjs UI icon edit-ltr-progressive.svg

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. Its API style and conventions deliberately resemble those of OpenGL. OpenAL is an environmental 3D audio library, which can add realism to a game by simulating attenuation (degradation of sound over distance), the Doppler effect (change in frequency as a result of motion), and material densities.

Contents

OpenAL aimed to originally be an open standard and open-source replacement for proprietary (and generally incompatible with one another) 3D audio APIs such as DirectSound and Core Audio, though in practice has largely been implemented on various platforms as a wrapper around said proprietary APIs or as a proprietary and vendor-specific fork. While the reference implementation later became proprietary and unmaintained, there are open source implementations such as OpenAL Soft available.

History

OpenAL was originally developed in 2000 by Loki Software to help them in their business of porting Windows games to Linux. [3] After the demise of Loki, the project was maintained for a time by the free software/open source community, and implemented on NVIDIA nForce sound cards and motherboards. It was hosted (and largely developed) by Creative Technology until circa 2012.

Since 1.1 (2009), the sample implementation by Creative has turned proprietary,[ citation needed ] with the last releases in free licenses still accessible through the project's Subversion source code repository. However, OpenAL Soft is a widely used open source alternative and remains actively maintained and extended.

While the OpenAL charter says that there will be an "Architecture Review Board" (ARB) modeled on the OpenGL ARB,[ citation needed ] no such organization has ever been formed and the OpenAL specification is generally handled and discussed via email on its public mailing list.

The original mailing list, openal-devel hosted by Creative, ran from March 2003 to circa August 2012. [4] Ryan C. Gordon, a Loki veteran who went on to develop Simple DirectMedia Layer, started a new mailing list and website at OpenAL.org in January 2014. [5] As of February 2023, the list remains in use.

API structure and functionality

The general functionality of OpenAL is encoded in source objects, audio buffers and a single listener. A source object contains a pointer to a buffer, the velocity, position and direction of the sound, and the intensity of the sound. The listener object contains the velocity, position and direction of the listener, and the general gain applied to all sound. Buffers contain audio data in PCM format, either 8- or 16-bit, in either monaural or stereo format. The rendering engine performs all necessary calculations for distance attenuation, Doppler effect, etc.

The net result of all of this for the end user is that in a properly written OpenAL application, sounds behave quite naturally as the user moves through the three-dimensional space of the virtual world. From a programmer's perspective, very little additional work is required to make this happen in an existing OpenGL-based 3D graphical application.

Unlike the OpenGL specification, the OpenAL specification includes two subsections of the API: the core consisting of the actual OpenAL function calls, and the ALC (Audio Library Context) API which is used to manage rendering contexts, resource usage and locking in a cross platform manner. There is also an 'ALUT' (Audio Library Utility Toolkit) library that provides higher level 'convenience' functions — exactly analogous to OpenGL's 'GLUT'.

In order to provide additional functionality in the future, OpenAL utilizes an extension mechanism. Individual vendors are thereby able to include their own extensions into distributions of OpenAL, commonly for the purpose of exposing additional functionality on their proprietary hardware. Extensions can be promoted to ARB (Architecture Review Board) status, indicating a standard extension which will be maintained for backwards compatibility. ARB extensions have the prospect of being added to the core API after a period of time.

For advanced digital signal processing and hardware-accelerated sound effects, the EFX (Effects Extension) or environmental audio extensions (EAX) can be used.

Limitations

The single listener model in OpenAL is tailored to a single human user and is not fit for artificial intelligence or robotic simulations or multiple human participants as in collaborative musical performances. [6] In these cases a multiple listener model is required. OpenAL also fails to take into account sound propagation delays (the speed of sound is used for the Doppler effect only). The distance to a sound source only translates into an amplitude effect (attenuation) and not a delay. Hence OpenAL cannot be used for time difference of arrival calculations unless that functionality is added in separately. [7]

In order to take full speed advantage of OpenAL, a vendor/hardware specific implementation is needed and these are seldom released as open source. Many supported platforms in fact implement OpenAL as a wrapper which simply translates calls to the platform's native, and often proprietary, audio API. On Windows, if a vendor specific implementation is not detected it will fall back to the wrap_oal.dll wrapper library that translates OpenAL into DirectSound (Generic Software) or DirectSound3D (Generic Hardware); the removal of the latter from Windows Vista onward has effectively broken generic hardware acceleration on modern versions of Windows. [8] [9]

Supported platforms

The API is available on the following platforms and operating systems: [10] Android (supports OpenSL ES), AmigaOS 3.x and 4.x, [11] Bada, BlackBerry 10, [12] BlackBerry PlayBook, BSD, iOS (supports Core Audio), IRIX, Linux (supports ALSA, OSS, PortAudio and PulseAudio), Mac OS 8, Mac OS 9 and Mac OS X (Core Audio), Microsoft Windows (supports DirectSound, Windows Multimedia API and Windows Multimedia Device (MMDevice) API), MorphOS, OpenBSD, [13] Solaris, QNX, and AROS. [14]

Supported gaming devices are for instance: GameCube, PlayStation 2, PlayStation 3, Xbox, Xbox 360, Wii, and PlayStation Portable.

Applications

Games

The following video games are known to use OpenAL:

Other applications

Implementations

OpenAL SI
The OpenAL Sample Implementation is the original implementation, from Loki, and is not currently maintained.
OpenAL Soft
OpenAL Soft is an LGPL-licensed, cross-platform, software implementation. The library is meant as a free compatible update/replacement to the now-deprecated and proprietary OpenAL Sample Implementation. OpenAL Soft supports mono, stereo (including HRTF and UHJ), 4-channel, 5.1, 6.1, 7.1, and B-Format output. Ambisonic assets are supported. [29] [30]
AeonWave-OpenAL
AeonWave-OpenAL is an LGPL-licensed OpenAL emulation layer that takes advantage of the hardware acceleration provided by the non-free but low cost AeonWave 4D-audio library for Linux and Windows made by Adalin B.V. The author claims that AeonWave-OpenAL implementation renders 3D audio five (on an AMD Athlon 64 X2) to seven (on an Intel Atom N270) times faster than either OpenAL SI or OpenAL Soft under the same conditions. [31] By using the AeonWave library this implementation supports HRTF as well as spatialised surround sound for up to eight speakers.
Rapture3D OpenAL Driver
The Rapture3D OpenAL Driver is a non-free, commercial, Windows only, software implementation made by Blue Ripple Sound. The library is intended as a high performance drop-in replacement for other implementations. It features: [32]
  • 32bit floating point audio path.
  • High quality sample rate conversion (used for various purposes including Doppler shift).
  • High quality effects and filters.
  • Support for multi-channel sound sources (including assets encoded using Ambisonics).
  • The only limit on the number of sources or effects is CPU power, can render hundreds of sound sources and multiple effects on relatively old hardware.
  • Higher-order Ambisonics (HOA) bus running at up to fourth order.
Apple OpenAL [33]
Apple ships an implementation of OpenAL in macOS and iOS. It is a very thin layer over the 3D Mixer (kAudioUnitSubType_3DMixer) feature in the operating system. This implementation was originally written by Ryan C. Gordon for Altivec Mac OS X systems. [34]
MojoAL
Tiny (single-file), full OpenAL 1.1 implementation built on top of SDL2 by Ryan C. Gordon. [35]

See also

Related Research Articles

<span class="mw-page-title-main">DirectX</span> Collection of multimedia related APIs on Microsoft platforms

Microsoft DirectX is a collection of application programming interfaces (APIs) for handling tasks related to multimedia, especially game programming and video, on Microsoft platforms. Originally, the names of these APIs all began with "Direct", such as Direct3D, DirectDraw, DirectMusic, DirectPlay, DirectSound, and so forth. The name DirectX was coined as a shorthand term for all of these APIs and soon became the name of the collection. When Microsoft later set out to develop a gaming console, the X was used as the basis of the name Xbox to indicate that the console was based on DirectX technology. The X initial has been carried forward in the naming of APIs designed for the Xbox such as XInput and the Cross-platform Audio Creation Tool (XACT), while the DirectX pattern has been continued for Windows APIs such as Direct2D and DirectWrite.

<span class="mw-page-title-main">OpenGL</span> Cross-platform graphics API

OpenGL is a cross-language, cross-platform application programming interface (API) for rendering 2D and 3D vector graphics. The API is typically used to interact with a graphics processing unit (GPU), to achieve hardware-accelerated rendering.

<span class="mw-page-title-main">Ambisonics</span> Full-sphere surround sound format

Ambisonics is a full-sphere surround sound format: in addition to the horizontal plane, it covers sound sources above and below the listener.

X3D is a set of royalty-free ISO/IEC standards for declaratively representing 3D computer graphics. X3D includes multiple graphics file formats, programming-language API definitions, and run-time specifications for both delivery and integration of interactive network-capable 3D data. X3D version 4.0 has been approved by Web3D Consortium, and is under final review by ISO/IEC as a revised International Standard (IS).

freedesktop.org (fd.o), formerly X Desktop Group (XDG), is a project to work on interoperability and shared base technology for free-software desktop environments for the X Window System (X11) and Wayland on Linux and other Unix-like operating systems. Although freedesktop.org produces specifications for interoperability, it is not a formal standards body.

The Environmental Audio Extensions are a number of digital signal processing presets for audio, present in Creative Technology Sound Blaster sound cards starting with the Sound Blaster Live and the Creative NOMAD/Creative ZEN product lines. Due to the release of Windows Vista in 2007, which deprecated the DirectSound3D API that EAX was based on, Creative discouraged EAX implementation in favour of its OpenAL-based EFX equivalent – though at that point relatively few games used the API.

<span class="mw-page-title-main">QuickDraw 3D</span> 3D graphics API developed by Apple Inc.

QuickDraw 3D, or QD3D for short, is a 3D graphics API developed by Apple Inc. starting in 1995, originally for their Macintosh computers, but delivered as a cross-platform system.

GLX is an extension to the X Window System core protocol providing an interface between OpenGL and the X Window System as well as extensions to OpenGL itself. It enables programs wishing to use OpenGL to do so within a window provided by the X Window System. GLX distinguishes two "states": indirect state and direct state.

DirectSound is a deprecated software component of the Microsoft DirectX library for the Windows operating system, superseded by XAudio2. It provides a low-latency interface to sound card drivers written for Windows 95 through Windows XP and can handle the mixing and recording of multiple audio streams. DirectSound was originally written for Microsoft by John Miles.

Game programming, a subset of game development, is the software development of video games. Game programming requires substantial skill in software engineering and computer programming in a given language, as well as specialization in one or more of the following areas: simulation, computer graphics, artificial intelligence, physics, audio programming, and input. For multiplayer games, knowledge of network programming is required. In some genres, e.g. fighting games, advanced network programming is often demanded, as the netcode and its properties are considered by players and critics to be some of the most important metrics of the game's quality. For massively multiplayer online games (MMOGs), even further knowledge of database programming and advanced networking programming are required. Though often engaged in by professional game programmers, there is a thriving scene of independent developers who lack a relationship with a publishing company.

OpenMAX, often shortened as "OMX", is a non-proprietary and royalty-free cross-platform set of C-language programming interfaces. It provides abstractions for routines that are especially useful for processing of audio, video, and still images. It is intended for low power and embedded system devices that need to efficiently process large amounts of multimedia data in predictable ways, such as video codecs, graphics libraries, and other functions for video, image, audio, voice and speech.

<span class="mw-page-title-main">OpenGL ES</span> Subset of the OpenGL API for embedded systems

OpenGL for Embedded Systems is a subset of the OpenGL computer graphics rendering application programming interface (API) for rendering 2D and 3D computer graphics such as those used by video games, typically hardware-accelerated using a graphics processing unit (GPU). It is designed for embedded systems like smartphones, tablet computers, video game consoles and PDAs. OpenGL ES is the "most widely deployed 3D graphics API in history".

<span class="mw-page-title-main">Mesa (computer graphics)</span> Free and open-source library for 3D graphics rendering

Mesa, also called Mesa3D and The Mesa 3D Graphics Library, is an open source implementation of OpenGL, Vulkan, and other graphics API specifications. Mesa translates these specifications to vendor-specific graphics hardware drivers.

<span class="mw-page-title-main">Xgl</span> Display server implementation

Xgl is an obsolete display server implementation supporting the X Window System protocol designed to take advantage of modern graphics cards via their OpenGL drivers, layered on top of OpenGL. It supports hardware acceleration of all X, OpenGL and XVideo applications and graphical effects by a compositing window manager such as Compiz or Beryl. The project was started by David Reveman of Novell and first released on January 2, 2006. It was removed from the X.org server in favor of AIGLX on June 12, 2008.

UNIGINE is a proprietary cross-platform game engine developed by UNIGINE Company used in simulators, virtual reality systems, serious games and visualization. It supports OpenGL 4, Vulkan and DirectX 12.

<span class="mw-page-title-main">AmigaOS</span> Operating system for Amiga computers

AmigaOS is a family of proprietary native operating systems of the Amiga and AmigaOne personal computers. It was developed first by Commodore International and introduced with the launch of the first Amiga, the Amiga 1000, in 1985. Early versions of AmigaOS required the Motorola 68000 series of 16-bit and 32-bit microprocessors. Later versions, after Commodore's demise, were developed by Haage & Partner and then Hyperion Entertainment. A PowerPC microprocessor is required for the most recent release, AmigaOS 4.

<span class="mw-page-title-main">EGL (API)</span> Application programming interface

EGL is an interface between Khronos rendering APIs and the underlying native platform windowing system. EGL handles graphics context management, surface/buffer binding, rendering synchronization, and enables "high-performance, accelerated, mixed-mode 2D and 3D rendering using other Khronos APIs." EGL is managed by the non-profit technology consortium Khronos Group.

<span class="mw-page-title-main">Marmalade (software)</span>

Marmalade SDK was a cross-platform software development kit and game engine from Marmalade Technologies Limited that contains library files, samples, documentation and tools required to develop, test and deploy applications for mobile devices.

Vulkan is a low-level, low-overhead cross-platform API and open standard for 3D graphics and computing. It was intended to address the shortcomings of OpenGL, and allow developers more control over the GPU. It is designed to support a wide variety of GPUs, CPUs and operating systems, and it is also designed to work with modern multi-core CPUs.

LÖVE is a free, open-source, cross-platform framework released under the zlib license for developing video games. The framework is written in C++ and uses Lua as its scripting language and is still maintained by its original developers. The framework is cross-platform supporting the platforms Microsoft Windows, macOS, Linux, Android, and iOS.

References

  1. "OpenAL: Cross Platform 3D Audio". openal.org.
  2. "OpenAL License". Archived from the original on December 30, 2012. Retrieved November 10, 2012.
  3. "Press release with regards to OpenAL" (Press release). Archived from the original on 2016-03-06. Retrieved 2011-07-18.
  4. "Wayback Machine prefix query: openal-devel archive" . Retrieved 25 April 2023.
  5. "The openal January 2014 Archive by thread". openal.org.
  6. Wozniewski, Mike; Settel, Zack; Cooperstock, Jeremy (2007). "User-specific audio rendering and steerable sound for distributed virtual environments" (PDF). Proceedings of International conference on auditory displays (ICAD). Retrieved August 5, 2012.
  7. Open Source FPS Game Alien Arena 2009 Released #28412367
  8. Enumeration with OpenAL on Windows
  9. OpenAL® and Windows Vista™
  10. "OpenAL – Platforms" . Retrieved May 10, 2012.
  11. "Archived copy". se.aminet.net. Archived from the original on 16 March 2018. Retrieved 6 June 2022.{{cite web}}: CS1 maint: archived copy as title (link)
  12. "blackberry/OpenAL 路 GitHub". Github.com. Retrieved January 14, 2013.
  13. "OpenAL for OpenBSD". Archived from the original on 2012-03-18. Retrieved 2011-07-18.
  14. "OpenAL/alut/ogg/vorbis [Forum – Development (General)". AROS-Exec. Archived from the original on May 26, 2013. Retrieved June 16, 2013.
  15. "Overview". 0 A.D. Game Info. Wildfire Games. Archived from the original on September 26, 2013. Retrieved December 5, 2012.
  16. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 "Games". OpenAL.org.[ self-published source? ]
  17. 1 2 "SCS Software forum". Archived from the original on June 5, 2019. Retrieved June 5, 2019.
  18. "HPL Engine – Mod DB". 11 May 2010. Retrieved November 20, 2012.
  19. "Troubleshooting: Reinstall OpenAL : Beamdog" . Retrieved May 29, 2014.
  20. "Bit.Trip Runner - PCGamingWiki" . Retrieved October 8, 2022.
  21. "ioquake3 website".
  22. "Blue Ripple Sound" . Retrieved September 23, 2017.
  23. "Blue Ripple Sound" . Retrieved September 23, 2017.
  24. "Modulaatio Games". Archived from the original on September 6, 2012.
  25. "Compatible OpenAL Games". Blue Ripple Sound.
  26. "Vanda Engine". Archived from the original on 2017-05-09. Retrieved 2017-05-18.
  27. Thalmann, Florian; Gaelli, Markus (2006). "Jam Tomorrow: Collaborative Music Generation in Croquet Using OpenAL". Jam Tomorrow: Collaborative Music Generation in Croquet Using OpenAL - IEEE Conference Publication. pp. 73–78. CiteSeerX   10.1.1.67.8139 . doi:10.1109/C5.2006.22. ISBN   978-0-7695-2563-1. S2CID   5577203.
  28. Lambers, Martin. "Bino: free 3D video player - About". bino3d.org.
  29. "OpenAL Soft – Software 3D Audio". openal-soft.org. Retrieved January 4, 2014.
  30. "OpenAL Soft Git repository" . Retrieved December 26, 2013.
  31. Hofman, Erik (May 9, 2012). "[Openal-devel] Announcement: AeonWave-OpenAL 1.1.7 released". Archived from the original on January 19, 2013. Retrieved December 9, 2012. Test have shown that AeonWave-OpenAL renders audio five times faster (on an AMD Athlon-64 X2 processor) and up to seven times faster (on an Intel Atom-N270 processor) than both OpenAL-Soft and OpenAL-Sample. Rendering 32 sounds on the Atom-N270 (the maximum for OpenAL-Soft) saves 1 Watt of continuous power consumption according to powertop.
  32. "Developers". Blue Ripple Sound Limited. 2009. Retrieved January 24, 2011.
  33. "Source Browser".
  34. "An OpenAL implementation for MacOS X". icculus.org.
  35. "MojoAL". icculus.org.

Implementations:

Developer resources: