miniaudio can substitute for OpenAL Soft for application-controlled audio playback, capture and basic spatial sound when the team accepts a different API. Its resource manager and node graph may fit a custom game engine, but they do not establish equivalence with OpenAL extensions or its HRTF implementation. A change requires rebuilding audio integration and checking the specific spatial-processing requirements.[2][3][5]
Overview
miniaudio is a C audio library usable from C and C++ applications. It combines low-level device playback and capture with optional higher-level sound management, mixing, effects and spatialization.[2][3]
Device API and audio engine
A developer can use the low-level API to exchange raw audio with a device, or use the higher-level engine to manage sounds. The engine builds on a node graph and resource manager, so mixing, effect routing and loading can be composed without adopting a separate artist-facing authoring application. This layering also allows integration with an existing application architecture.[2]
Resources and decoding
The repository lists built-in WAV, FLAC and MP3 decoding and WAV encoding. Additional formats can be supplied through custom decoders; the manual gives examples involving external Opus and Vorbis libraries. Resource management can load and decode asynchronously or stream larger assets. Consequently, a small dependency-free core does not imply every desired codec is built in or that optional decoders have no separate dependencies.[3][4]
Source and concurrency boundaries
The project recommends incorporating the code directly into the application's source tree and does not guarantee ABI compatibility between versions. Its manual also distinguishes lock-free audio reading from graph modification and resource-management operations that can involve synchronization. Applications with strict real-time requirements must account for those boundaries rather than interpreting the library as universally lock-free.[3][4]
Platforms and license choice
Documented targets include Windows, macOS, Linux, BSD, Android, iOS and Emscripten-based web applications. Other targets may need a custom backend for playback or capture. The library offers a choice of the Unlicense/public-domain dedication or MIT No Attribution. That permissive choice applies to miniaudio, while external codecs and other additions retain their own terms.[1][3]
Capabilities & limitations
Playback, capture and sound management
supported
Low-level device access and a higher-level engine are available.[2]
Runtime game audio and interactive sound · Windows, macOS, Linux, BSD, Android, iOS, Web via Emscripten · Supported backend, SDK and distribution terms apply
Device API, engine, resource manager and node graph
vendor · checked 2026-10-07
Stable binary ABI across releases
unsupported
The project explicitly does not guarantee ABI compatibility.[3]
Runtime game audio and interactive sound · Windows, macOS, Linux, BSD, Android, iOS, Web via Emscripten · Supported backend, SDK and distribution terms apply
Graph changes and resource-management operations can synchronize.[4]
Runtime game audio and interactive sound · Windows, macOS, Linux, BSD, Android, iOS, Web via Emscripten · Supported backend, SDK and distribution terms apply