play

Play an audio file through the real output device.

Run: gleam run -m play

The Player handle is a NIF resource freed by the BEAM garbage collector (which stops playback) — no explicit close is needed. Ctrl-C twice opens the BEAM break menu, which halts the VM and the output device with it.

Values

pub fn main() -> Nil
Search Document