@eryx/gfx/sound Module
JSON
Audio loading and playback via miniaudio.
local sound = require("@eryx/gfx/sound")
sound.init()
local sfx = sound.load("click.wav")
sfx:play()
The returned Sound object has methods like :play(), :stop(), :setVolume(), :setCursor(), :getCursor(), :getDuration() provided by the native metatable.