OpenAL Soft is a software implementation of the OpenAL 3D audio API.
  • C++ 91.8%
  • C 3.2%
  • CMake 2.7%
  • Python 2.1%
  • Batchfile 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-11 02:25:18 -07:00
.github/workflows Update some GitHub CI actions 2026-03-18 20:50:39 -07:00
al Use standard __has_cpp_attribute 2026-08-03 21:00:32 -07:00
alc Avoid a temporary array when formatting the backend names 2026-08-09 20:00:44 -07:00
alsoft-modules Move a couple modules to more appropriate directories 2026-08-03 03:55:37 -07:00
build Move the default out-of-tree build dir to build 2009-09-12 17:54:27 -07:00
cmake Make the HRTF resource data array constexpr 2026-07-26 19:21:43 -07:00
common Make PFFFT functions non-blocking 2026-08-11 02:21:16 -07:00
configs WASAPI exclusive config (#1094) 2025-01-09 03:44:33 +00:00
core Make the UHJ and TSME functions non-blocking 2026-08-11 02:25:18 -07:00
docs Change the default HRTF dataset 2026-07-27 23:52:05 -07:00
examples Use comparison functions to test ordering 2026-07-24 23:07:41 -07:00
fmt-11.2.0 Fix malloc/free in fmtlib 2025-09-22 20:49:24 -07:00
gsl Integrate the GSL and start using it 2025-06-25 22:39:38 -07:00
hrtf Change the default HRTF dataset 2026-07-27 23:52:05 -07:00
include/AL Remove the struct prefix from parameter types in modules 2026-01-27 18:30:35 -08:00
logging Add Windows script to run executable with logging (#1207) 2025-11-30 02:19:52 -08:00
modules Remove the struct prefix from parameter types in modules 2026-01-27 18:30:35 -08:00
presets Fix the speaker count in presets/3D7.1.ambdec 2025-04-21 22:38:42 -07:00
registry Remove the struct prefix from parameter types in modules 2026-01-27 18:30:35 -08:00
resources Remove BOM markers and set UTF-8 codepage for rc files 2019-07-01 00:28:06 -07:00
router Use comparison functions to test ordering 2026-07-24 23:07:41 -07:00
tests Add gtest integration (#860) 2023-06-12 03:31:03 +00:00
utils Use comparison functions to test ordering 2026-07-24 23:07:41 -07:00
.clang-tidy Disable the misc-use-internal-linkage check 2025-08-19 07:26:08 -07:00
.gitignore Update gitignore for a CLion-generated directory 2025-11-02 21:39:52 -08:00
.travis.yml Don't require RTKit for Xenial CI 2021-04-18 01:52:22 -07:00
alsoftrc.sample Add FIR filter options for the TSME's allpass filter 2026-01-08 10:58:23 -08:00
appveyor.yml Release 1.25.2 2026-05-11 19:21:07 -07:00
ChangeLog Release 1.25.2 2026-05-11 19:21:07 -07:00
CMakeLists.txt Fix file order 2026-08-03 17:12:01 -07:00
config.h.in Allow disabling dynamic loading of optional libs on Windows (#1256) 2026-03-22 17:01:36 -07:00
config_backends.h.in Remove the OtherIO backend 2025-07-26 10:02:46 -07:00
config_simd.h.in Use 0/1 defines for backend and simd macros 2024-11-13 20:49:20 -08:00
COPYING Fix COPYING 2018-07-02 17:09:53 -07:00
libopenal.version Add a version script for non-Windows/macOS systems 2023-04-10 15:52:26 -07:00
LICENSE-pffft Include a copy of PFFFT 2023-10-06 00:33:48 -07:00
LICENSE.Apache-2.0.txt Change the default HRTF dataset 2026-07-27 23:52:05 -07:00
LICENSE.BSD-3-Clause.txt Rename BSD-3Clause to give extra license files consistency 2026-07-27 23:36:39 -07:00
openal.pc.in Specify Libs.private for the pkg-config file 2018-03-29 18:57:48 -07:00
OpenALConfig.cmake.in CMake: Add OpenAL_VERSION result variable (#1184) 2025-09-30 16:26:30 -07:00
README.md Change the default HRTF dataset 2026-07-27 23:52:05 -07:00
version.cmake More robustly generate the git commit ID and branch 2016-12-21 11:41:45 -08:00
version.h.in Added rc scripts for dll (#306) 2019-06-30 22:01:04 -07:00
XCompile-Android.txt Add a comment about using lld on Android 2021-01-31 13:24:58 -08:00
XCompile.txt Update cross-compiler toolchain to work better with Qt 2014-11-06 23:18:42 -08:00

OpenAL Soft

master branch CI status : GitHub Actions Status Windows Build Status

OpenAL Soft is an LGPL-licensed, cross-platform, software implementation of the OpenAL 3D audio API. It's forked from the open-sourced Windows version available originally from openal.org's SVN repository (now defunct). OpenAL provides capabilities for playing audio in a virtual 3D environment. Distance attenuation, doppler shift, and directional sound emitters are among the features handled by the API. More advanced effects, including air absorption, occlusion, and environmental reverb, are available through the EFX extension. It also facilitates streaming audio, multi-channel buffers, and audio capture.

More information is available on the official website.

License

The OpenAL Soft project is provided under the terms of the LGPL 2 or later (see COPYING).

The default HRTF dataset is derived from the [SADIE II database[(https://www.york.ac.uk/sadie-project/database.html), and is provided under the Apache 2.0 license (see LICENSE.Apache-2.0.txt).

Source Install

To install OpenAL Soft, use your favorite shell to go into the build/ directory, and run:

cmake ..

Alternatively, you can use any available CMake front-end, like cmake-gui, ccmake, or your preferred IDE's CMake project parser.

Assuming configuration went well, you can then build it. The command cmake --build . will instruct CMake to build the project with the toolchain chosen during configuration (often GNU Make or NMake, although others are possible).

Please Note: Double check that the appropriate backends were detected. Often, complaints of no sound, crashing, and missing devices can be solved by making sure the correct backends are being used. CMake's output will identify which backends were enabled.

For most systems, you will likely want to make sure PipeWire, PulseAudio, and ALSA were detected (if your target system uses them). For Windows, make sure WASAPI was detected.

Building openal-soft - Using vcpkg

You can download and install openal-soft using the vcpkg dependency manager:

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
./vcpkg install openal-soft

The openal-soft port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please create an issue or pull request on the vcpkg repository.

Utilities

The source package comes with an informational utility, openal-info, and is built by default. It prints out information provided by the ALC and AL sub- systems, including discovered devices, version information, and extensions.

Configuration

OpenAL Soft can be configured on a per-user and per-system basis. This allows users and sysadmins to control information provided to applications, as well as application-agnostic behavior of the library. See alsoftrc.sample for available settings.

Language Bindings

As a C API, OpenAL Soft can be used directly by any language that can use functions with C linkage. For languages that can't directly use C-style headers, bindings may be developed to allow code written in that language to call into the library. Some bindings for some languages are listed here.

C# Bindings:

  • OpenTK includes low-level C# bindings for the OpenAL API, including some extensions. It also includes utility libraries for math and linear algebra, which can be useful for 3D calculations.

Java Bindings:

  • LWJGL, the Lightweight Java Game Library, includes Java bindings for the OpenAL API, usable with OpenAL Soft.
  • JOAL, part of the JogAmp project, includes Java bindings for the OpenAL API, usable with OpenAL Soft. It also includes a higher level Sound3D Toolkit API and utility functions to make easier use of OpenAL features and capabilities.

Kotlin Bindings:

  • Multiplatform OpenAL, developed for the Kleaver project, includes Kotlin/Native bindings for the OpenAL API, based on OpenAL Soft with support for Windows, Linux, macOS, iOS and Android.

Python Bindings:

  • PyOpenAL. Also includes methods to play wave files and, with PyOgg, also Vorbis, Opus, and FLAC.

FreePascal/Lazarus Bindings:

  • ALSound. Also includes a higher level API and libsndfile support to simplify loading and playing sounds.

Other bindings for these and other languages also exist. This list will grow as more bindings are found.

Acknowledgements

Special thanks go to:

  • Creative Labs for the original source code this is based off of.
  • Christopher Fitzgerald for the current reverb effect implementation, and helping with the low-pass and HRTF filters.
  • Christian Borss for the 3D panning code previous versions used as a base.
  • Ben Davis for the idea behind a previous version of the click-removal code.
  • Richard Furse for helping with my understanding of Ambisonics that is used by the various parts of the library.