Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
 /// <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);
     }
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }