//!: Test This /// <summary> /// Stop the current content, associated to the specified playing ID, from playing. /// </summary> /// <param name="playingID">The playing ID to be stopped.</param> /// <param name="transitionDurationInMs">The fade duration in ms.</param> /// <param name="fadeCurve">The fade curve type to be used for the transition.</param> public static void StopPlayingID(int playingID, int transitionDurationInMs, WwiseValues.CurveInterpolation fadeCurve) { if (wwise.packet.results != null) { wwise.packet.results.Clear(); } wwise.packet.keywordArguments.Add("playingId", playingID); wwise.packet.keywordArguments.Add("transitionDuration", transitionDurationInMs); wwise.packet.keywordArguments.Add("fadeCurve", fadeCurve); wwise.packet.procedure = "ak.soundengine.stopPlayingId"; wwise.packet.callback = new Callback(wwise.packet); wwise.connection.Execute(wwise.packet); wwise.packet.Clear(); }
//!: Test This /// <summary> /// Execute an action on all nodes that are referenced in the specified event in an action of type play. /// </summary> /// <param name="eventGUID">Either the ID (GUID), name or short ID of the event.</param> /// <param name="actionType">Action to execute on all the elements that were played using the specified event.</param> /// <param name="gameObject">Associated game object ID.</param> /// <param name="transitionDurationInMs">Fade duration (ms).</param> /// <param name="fadeCurve">The fade curve type.</param> public static void ExecuteActionOnEvent(string eventGUID, WwiseValues.ActionType actionType, int gameObject, int transitionDurationInMs, WwiseValues.CurveInterpolation fadeCurve) { if (wwise.packet.results != null) { wwise.packet.results.Clear(); } wwise.packet.keywordArguments.Add("event", eventGUID); wwise.packet.keywordArguments.Add("actionType", actionType); wwise.packet.keywordArguments.Add("gameObject", gameObject); wwise.packet.keywordArguments.Add("transitionDuration", transitionDurationInMs); wwise.packet.keywordArguments.Add("fadeCurve", fadeCurve); wwise.packet.procedure = "ak.soundengine.executeActionOnEvent"; wwise.packet.callback = new Callback(wwise.packet); wwise.connection.Execute(wwise.packet); wwise.packet.Clear(); }