Available
amalgame-audio
Synth + playback + WAV IO via vendored miniaudio.
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
- ✓Oscillators (sine, square, triangle, noise)
- ✓Attack/release envelope and a simple mixer
- ✓miniaudio vendored — public domain
Example
Minimal usage example.
amc package add audio
import Amalgame.Audio
public class Program {
public static void Main(string[] args) {
let snd = Audio.LoadWav("beep.wav")
Audio.Play(snd, Audio.SampleRateOf("beep.wav"))
}
}
At a glance
- License: Apache-2.0
- Install:
amc package add audio - Source: amalgame-lang/amalgame-audio
- Official index: amalgame-lang/packages-index