コード例 #1
0
ファイル: AkWaapiClient.cs プロジェクト: Lrakulka/GGJ_2019
    /// <summary>
    ///     Perform a call to the Wwise Authoring. See <a href="https://www.audiokinetic.com/library/edge/?source=SDK&id=waapi__query.html" target="_blank">Querying the Wwise Project</a> for more information.
    /// </summary>
    /// <param name="Uri">Function to call</param>
    /// <param name="Args">Arguments required by the function</param>
    /// <param name="Options">Elements of the Wwise objects to return</param>
    /// <param name="TimeoutMs">Timeout in milliseconds to wait on the Wwise Authoring application to respond</param>
    /// <param name="Result">Result of the subscription attempt</param>
    /// <returns>Call success</returns>
    public static bool Call(string Uri, string Args, string Options, int TimeoutMs, out string Result)
    {
        int  ResultLength;
        bool res = AkWaapiClient_PINVOKE.Call(Uri, Args, Options, TimeoutMs, out ResultLength);

        res &= GetLastString(ResultLength, out Result);
        return(res);
    }
コード例 #2
0
 /// <summary>
 ///     Perform a call to the Wwise Authoring. See <a href="https://www.audiokinetic.com/library/edge/?source=SDK&id=waapi__query.html" target="_blank">Querying the Wwise Project</a> for more information.
 /// </summary>
 /// <param name="Uri">Function to call</param>
 /// <param name="Args">Arguments required by the function</param>
 /// <param name="Options">Elements of the Wwise objects to return</param>
 /// <param name="Result">Result of the subscription attempt</param>
 /// <returns>Call success</returns>
 public static bool Call(string Uri, string Args, string Options, out string Result)
 {
     try
     {
         int  ResultLength;
         bool res = AkWaapiClient_PINVOKE.Call(Uri, Args, Options, out ResultLength);
         res &= GetLastString(ResultLength, out Result);
         return(res);
     }
     catch
     {
         Result = string.Empty;
         return(false);
     }
 }