/// <summary> /// Play or pause an object in Wwise authoring. Opens a new transport in wwise to play the sound if it does not exist yet. /// </summary> /// <param name="guid">GUID of the object to be played.</param> /// <returns></returns> static async private Task TogglePlayEventAsync(System.Guid guid) { var transportID = await GetTransport(guid); var args = new ArgsPlay(WaapiKeywords.PLAYSTOP, transportID); var result = await WaapiClient.Call(ak.wwise.core.transport.executeAction, args, null); }
/// <summary> /// Send a WAAPI command to stop the specific transport. /// </summary> /// <param name="in_transportID">ID of the transport.</param> /// <returns></returns> static private async Task StopTransport(int in_transportID) { var args = new ArgsPlay(WaapiKeywords.STOP, in_transportID); var result = await WaapiClient.Call(ak.wwise.core.transport.executeAction, args, null); }