FML/Controls/Control.php
public function addUISoundFeature($soundName, $variant = 0, $eventLabel = ScriptLabel::MOUSECLICK)
    {
        $uiSound = new UISound($soundName, $this, $variant, $eventLabel);
        $this->addScriptFeature($uiSound);
        return $this;
    }
public function addUISoundFeature($soundName, $variant = 0, $eventLabel = ScriptLabel::MOUSECLICK)
    {
        $uiSound = new UISound($soundName, $this, $variant, $eventLabel);
        $this->addScriptFeature($uiSound);
        return $this;
    }
public function addUISoundFeature ( $ soundName , $ variant = 0 , $ eventLabel = ScriptLabel :: MOUSECLICK ) { $ uiSound = new UISound ( $ soundName , $ this , $ variant , $ eventLabel ) ; $ this -> addScriptFeature ( $ uiSound ) ; return $ this ; }
Add a dynamic Feature playing a UISound

@api
@param string $soundName  UISound name
@param int    $variant    (optional) Sound variant
@param string $eventLabel (optional) Event on which the sound will be played
@return static
Add a dynamic Feature playing a UISound