Skip to content

Timer:audioActions

since 1.5.0

Get / Set the audio actions of the timer.

timer:audioActions([actions])

Parameters

Name Type Required Description
actions table optional

Returns

audio actions (table)

Examples

From the official Ethos documentation
timer = model.getTimer(0)
timer:audioActions({
    {type=COUNTDOWN_VALUE, start=10, step=30},
    {type=COUNTDOWN_BEEP, start=11, step=31},
    {type=PLAY_FILE, start=12, step=32, filename="test.wav"},
    {type=PLAY_VALUE, start=13, step=30},
})
local audioActions = timer:audioActions()