{"schemaVersion":"1.0","record":{"label":"miniaudio","description":"C audio library with device access, a sound engine and graph-based mixing.","aliases":[],"kind":"software","website":"https://miniaud.io/","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.","license":"Unlicense OR MIT-0","lifecycle":"active","example":false,"features":[{"name":"Playback, capture and sound management","status":"supported","detail":"Low-level device access and a higher-level engine are available.","useCase":"Runtime game audio and interactive sound","platforms":["Windows","macOS","Linux","BSD","Android","iOS","Web via Emscripten"],"region":"Supported backend, SDK and distribution terms apply","evidence":[{"url":"https://miniaud.io/","locator":"Device API, engine, resource manager and node graph","retrievedAt":"2026-10-07T07:06:28Z","kind":"vendor"}]},{"name":"Stable binary ABI across releases","status":"unsupported","detail":"The project explicitly does not guarantee ABI compatibility.","useCase":"Runtime game audio and interactive sound","platforms":["Windows","macOS","Linux","BSD","Android","iOS","Web via Emscripten"],"region":"Supported backend, SDK and distribution terms apply","evidence":[{"url":"https://github.com/mackron/miniaudio/blob/master/README.md","locator":"Formats, source integration, ABI and targets","retrievedAt":"2026-10-07T07:06:36Z","kind":"vendor"}]},{"name":"Entirely lock-free API","status":"limited","detail":"Graph changes and resource-management operations can synchronize.","useCase":"Runtime game audio and interactive sound","platforms":["Windows","macOS","Linux","BSD","Android","iOS","Web via Emscripten"],"region":"Supported backend, SDK and distribution terms apply","evidence":[{"url":"https://miniaud.io/docs/manual/index.html","locator":"Resource manager custom decoders and thread-safety sections","retrievedAt":"2026-10-07T07:06:54Z","kind":"vendor"}]}],"alternatives":[],"slug":"miniaudio","draftAlternatives":[{"targetSlug":"openal-soft","status":"limited","detail":"Candidate for custom runtime playback and capture with basic spatialization; not an API-compatible or HRTF-equivalent replacement.","useCase":"Runtime game audio and interactive sound","platforms":["Windows","macOS","Linux","BSD","Android","iOS","Web via Emscripten"],"region":"Supported backend, SDK and distribution terms apply","evidence":[{"url":"https://miniaud.io/","locator":"Device API, engine, resource manager and node graph","retrievedAt":"2026-10-07T07:06:28Z","kind":"vendor"},{"url":"https://openal-soft.org/","locator":"Spatial audio, backends, extensions and build requirements","retrievedAt":"2026-10-07T07:06:28Z","kind":"vendor"}]}],"evidence":[{"url":"https://miniaud.io/","locator":"Device API, engine, resource manager and node graph","retrievedAt":"2026-10-07T07:06:28Z","kind":"vendor"},{"url":"https://github.com/mackron/miniaudio/blob/master/README.md","locator":"Formats, source integration, ABI and targets","retrievedAt":"2026-10-07T07:06:36Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/mackron/miniaudio/blob/master/LICENSE","locator":"Choice of Unlicense or MIT No Attribution","retrievedAt":"2026-10-07T07:07:20Z","id":"mini-license","title":"miniaudio license","kind":"vendor"},{"url":"https://miniaud.io/","locator":"Device API, engine, resource manager and node graph","retrievedAt":"2026-10-07T07:06:28Z","id":"mini-home","title":"miniaudio overview","kind":"vendor"},{"url":"https://github.com/mackron/miniaudio/blob/master/README.md","locator":"Formats, source integration, ABI and targets","retrievedAt":"2026-10-07T07:06:36Z","id":"mini-readme","title":"miniaudio README","kind":"vendor"},{"url":"https://miniaud.io/docs/manual/index.html","locator":"Resource manager custom decoders and thread-safety sections","retrievedAt":"2026-10-07T07:06:54Z","id":"mini-manual","title":"miniaudio programming manual","kind":"vendor"},{"url":"https://openal-soft.org/","locator":"Spatial audio, backends, extensions and build requirements","retrievedAt":"2026-10-07T07:06:28Z","id":"openal-home","title":"OpenAL Soft overview","kind":"vendor"}],"overviewCitations":["mini-home","mini-readme"],"licenseCitations":["mini-license"],"sections":[{"id":"layers","heading":"Device API and audio engine","paragraphs":[{"id":"layers-detail","content":[{"text":"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."}],"citations":["mini-home"]}]},{"id":"formats","heading":"Resources and decoding","paragraphs":[{"id":"formats-detail","content":[{"text":"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."}],"citations":["mini-readme","mini-manual"]}]},{"id":"integration","heading":"Source and concurrency boundaries","paragraphs":[{"id":"integration-detail","content":[{"text":"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."}],"citations":["mini-readme","mini-manual"]}]},{"id":"license","heading":"Platforms and license choice","paragraphs":[{"id":"license-detail","content":[{"text":"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."}],"citations":["mini-readme","mini-license"]}]},{"id":"comparison","heading":"Substitution assessment","paragraphs":[{"id":"comparison-detail","content":[{"text":"miniaudio can substitute for "},{"text":"OpenAL Soft","targetSlug":"openal-soft"},{"text":" 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."}],"citations":["mini-home","mini-readme","openal-home"]}]}]},"id":"Q1009","revision":1057,"updatedAt":"2026-10-13T19:06:21Z","sourceUrl":"https://substitutefor.net/entities/Q1009?revision=1057"}}