Available

amalgame-audio

Synth + playback + WAV IO via vendored miniaudio.

amc package add audio GitHub ↗ ← Back to the ecosystem

Overview

Wrapper around miniaudio (public domain) — a single C file for cross-platform audio playback/capture. The package adds: basic synthesis (oscillators, envelopes), mixer, WAV IO. Ideal for sound effects, audio prototypes, lightweight creative tools.

Features

  • Cross-OS playback and capture (CoreAudio, WASAPI, ALSA, PulseAudio)
  • WAV read/write in pure Amalgame
  • Oscillators (sine, square, saw, triangle, noise)
  • ADSR envelopes and a simple mixer
  • miniaudio vendored — public domain

Example

Minimal usage example — copy-paste runnable after install.

amc package add audio

let snd = Wav.Load("beep.wav")
let dev = Audio.Open()
dev.Play(snd)

At a glance

Related packages