/// <summary>
 /// Stops the specified trigger id on this audio object
 /// </summary>
 /// <param name="triggerId"></param>
 public void Stop(AudioTriggerId triggerId)
 {
     if (triggerId.IsValid)
     {
         NativeAudioSystem.StopAudioObjectTrigger(_cPtr.Handle, triggerId._id, false);
     }
 }
 /// <summary>
 /// Executes the specified trigger id on this audio object
 /// </summary>
 /// <param name="triggerId"></param>
 public void Play(AudioTriggerId triggerId)
 {
     if (triggerId.IsValid)
     {
         NativeAudioSystem.ExecuteAudioObjectTrigger(_cPtr.Handle, triggerId._id, false);
     }
 }
Example #3
0
 /// <summary>
 /// Stops the specified audio trigger. Only audio triggers that have been "played" can be stopped.
 /// </summary>
 /// <param name="triggerId"></param>
 /// <returns>True if the audio trigger is stopped</returns>
 public static bool Stop(AudioTriggerId triggerId)
 {
     if (triggerId.IsValid)
     {
         NativeAudioSystem.StopTrigger(triggerId._id);
         return(true);
     }
     return(false);
 }
Example #4
0
 /// <summary>
 /// Plays the audio specified by the trigger id. Returns true if the trigger id is valid
 /// </summary>
 /// <param name="triggerId"></param>
 /// <returns></returns>
 public static bool Play(AudioTriggerId triggerId)
 {
     if (triggerId.IsValid)
     {
         NativeAudioSystem.ExecuteTrigger(triggerId._id);
         return(true);
     }
     return(false);
 }