Sharp Aion2 Lua SDK
API reference

soundLua table

Play a system sound or a WAV file.

sound.beep(type)

Parameters: Optional type is a system sound number from 0 to 4 (default 0). Returns: true when playback is requested, false if playback fails, or nil, error for invalid input.

local ok, err = sound.beep(0)
if ok == nil then log.warn(err) end

sound.play(name)

Parameters: name identifies a WAV file in Scripts/sounds/ and follows the script ID rule: 1–64 letters, digits, _, or -. Do not include the .wav extension. Returns: true when asynchronous playback is requested, false if playback fails, or nil, error for invalid input or an unavailable audio service.

local ok, err = sound.play("alert")
if ok == nil then log.warn(err) end