PrepareEvent() public static method

public static PrepareEvent ( PreparationType in_PreparationType, string in_ppszString, uint in_uNumEvent ) : AKRESULT
in_PreparationType PreparationType
in_ppszString string
in_uNumEvent uint
return AKRESULT
Ejemplo n.º 1
0
 /// <summary>
 /// 预加载 Event
 /// </summary>
 /// <param name="SounEventName"></param>
 /// <param name="load"></param>
 /// <returns></returns>
 public bool LoadorUnLoadPrepareEvent(string SounEventName, bool load = true)
 {
     AKRESULT result = AkSoundEngine.PrepareEvent(load ? AkPreparationType.Preparation_Load : AkPreparationType.Preparation_Unload, new string[] { SounEventName }, 1);
     if (result != AKRESULT.AK_Success)
     {
         //UnityEngine.Debug.LogError(string.Format("WwiseUnity: PlaySound2D---> PrepareEvent失败!  SounEventName = {0}, result  = {1} ", SounEventName, result));
         return false;
     }
     return true;
 }