Skip to content

Audio Programs

We can also develop audio related programs using Xmake.

OpenAL

OpenAL Soft is a cross-platform software implementation of the OpenAL 3D audio API.

EXPLORER
src
main.cpp
xmake.lua
Lua xmake.lua
12345678
add_rules("mode.debug", "mode.release")

add_requires("openal-soft")

target("openal_test")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("openal-soft")

Build and Run

bash
$ xmake
$ xmake run