Ejemplo 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);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Stops the specified trigger name on this audio object
        /// </summary>
        /// <param name="triggerName"></param>
        public void Stop(string triggerName)
        {
            uint triggerId = Audio.InvalidControlId;

            AudioManager.AddOrGetTrigger(triggerName, out triggerId);
            if (triggerId != Audio.InvalidControlId)
            {
                NativeAudioSystem.StopAudioObjectTrigger(_cPtr.Handle, triggerId, false);
            }
        }