onStart

open fun onStart(action: Consumer<Integer>): Sound

Set the action to run when the sound starts.

Return

this Sound object

Parameters

action

the action to run when the sound starts