# mackron/miniaudio

Audio playback and capture library written in C, in a single source file.

Repository: https://github.com/mackron/miniaudio
Canonical: https://ross.abutalabs.com/products/miniaudio
Homepage: https://miniaud.io
Language: C
License: NOASSERTION
License Family: other
Topics: audio, playback, capture, recording, windows, linux, bsd, android, emscripten, public-domain, macos, osx, ios, mp3, flac, wav, vorbis, audio-library, wasapi, decoding
Last push: 2026-08-19T22:07:12+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 49, longevity 100
- inputs: {"age_days": 3603, "days_push": 14, "days_rel": 183, "gap_med": 128, "n_releases_24m": 4}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7184, forks 598 (observed 2026-08-28T04:09:56.458864+00:00)

## What it is
miniaudio is an audio playback and capture library for C and C++ distributed as a single source file with no external dependencies. It provides low-level device access plus a high-level engine with mixing, effects, 3D spatialization, and built-in decoders for WAV, FLAC, and MP3.

## Use cases
- play sound files in a C or C++ application
- record audio from a microphone
- decode wav mp3 and flac files without external libraries
- mix multiple sounds with effects and 3D spatialization
- build a cross-platform audio engine for a game
- resample and convert audio data between formats
- implement duplex audio streaming

## When to choose
- you want zero-dependency audio in C/C++ with a simple build
- you need cross-platform audio across desktop, mobile, and web
- you want both low-level device access and a high-level mixing engine
- you need a permissive public-domain/MIT-0 license

## When to avoid
- you need advanced audio codecs like AAC or OGG Vorbis out of the box
- you require ABI stability across shared library versions
- you need a full DAW-grade audio processing suite
- you are working outside C/C++ without binding effort

## Facets
- artifact type: library
- maturity: stable
- function: audio-processing, sdk
- domain: cross-platform, developer-tools
- platform: windows, bsd, cross-platform, wasm, cpp, c
- tags: single-file, public-domain, playback, capture, recording, decoding, resampling, spatialization, no-dependencies, game-audio, audio, macos, linux, android, ios

## Member repositories
- mackron/miniaudio (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:56.458864+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:39:55.154768+00:00, confidence not recorded.
  - readme: https://github.com/mackron/miniaudio (fetched 2026-08-28T04:09:56.458864+00:00, sha 05a34786bf3a)
  - homepage: https://miniaud.io (fetched 2026-08-29T08:35:05.541503+00:00, sha 24c2721efd1d)
  - site_page: https://miniaud.io/docs/manual/index.html (fetched 2026-08-29T08:35:05.544134+00:00, sha 28edfa5321ad)
  - site_page: https://miniaud.io/docs/examples/index.html (fetched 2026-08-29T08:35:05.550043+00:00, sha 29b89ac47a76)
- Data as of 2026-08-30T08:39:29.467469+00:00.
