# miniaudio

C audio library with device access, a sound engine and graph\-based mixing\.

ID: Q1009 · Revision: 1057

Type: software · License: Unlicense OR MIT\-0[^mini-license] · Status: active

Website: https://miniaud.io/



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\.[^mini-home][^mini-readme]

## 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\.[^mini-home]

## 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\.[^mini-readme][^mini-manual]

## 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\.[^mini-readme][^mini-manual]

## 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\.[^mini-readme][^mini-license]

## Substitution assessment

miniaudio can substitute for [OpenAL Soft](/openalsoft) 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\.[^mini-home][^mini-readme][^openal-home]

## Capabilities and substitutions

### Playback, capture and sound management — supported

Low\-level device access and a higher\-level engine are available\.[^mini-home]

Use case: Runtime game audio and interactive sound · Platforms: Windows, macOS, Linux, BSD, Android, iOS, Web via Emscripten · Region: Supported backend, SDK and distribution terms apply

### Stable binary ABI across releases — unsupported

The project explicitly does not guarantee ABI compatibility\.[^mini-readme]

Use case: Runtime game audio and interactive sound · Platforms: Windows, macOS, Linux, BSD, Android, iOS, Web via Emscripten · Region: Supported backend, SDK and distribution terms apply

### Entirely lock\-free API — limited

Graph changes and resource\-management operations can synchronize\.[^mini-manual]

Use case: Runtime game audio and interactive sound · Platforms: Windows, macOS, Linux, BSD, Android, iOS, Web via Emscripten · Region: Supported backend, SDK and distribution terms apply

### [Substitute for OpenAL Soft](/openalsoft) — limited

Candidate for custom runtime playback and capture with basic spatialization; not an API\-compatible or HRTF\-equivalent replacement\.[^mini-home][^openal-home]

Use case: Runtime game audio and interactive sound · Platforms: Windows, macOS, Linux, BSD, Android, iOS, Web via Emscripten · Region: Supported backend, SDK and distribution terms apply

## References

[^mini-license]: [miniaudio license](<https://github.com/mackron/miniaudio/blob/master/LICENSE>) — Choice of Unlicense or MIT No Attribution (vendor; retrieved 2026-10-07T07:07:20Z)

[^mini-home]: [miniaudio overview](<https://miniaud.io/>) — Device API, engine, resource manager and node graph (vendor; retrieved 2026-10-07T07:06:28Z)

[^mini-readme]: [miniaudio README](<https://github.com/mackron/miniaudio/blob/master/README.md>) — Formats, source integration, ABI and targets (vendor; retrieved 2026-10-07T07:06:36Z)

[^mini-manual]: [miniaudio programming manual](<https://miniaud.io/docs/manual/index.html>) — Resource manager custom decoders and thread\-safety sections (vendor; retrieved 2026-10-07T07:06:54Z)

[^openal-home]: [OpenAL Soft overview](<https://openal-soft.org/>) — Spatial audio, backends, extensions and build requirements (vendor; retrieved 2026-10-07T07:06:28Z)

Source revision: https://substitutefor.net/entities/Q1009?revision=1057
