[chronojump] PlaySounds ensures not using triggers



commit 36e515e2e617219340f5530359458685914f6484
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Apr 18 23:33:54 2018 +0200

    PlaySounds ensures not using triggers

 src/encoderCapture.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/encoderCapture.cs b/src/encoderCapture.cs
index af56aa9..f9b4fee 100644
--- a/src/encoderCapture.cs
+++ b/src/encoderCapture.cs
@@ -326,8 +326,12 @@ public abstract class EncoderCapture
                        }
                        else if(byteReaded == TRIGGER_OFF)
                        {
-                               Trigger trigger  = new Trigger(Trigger.Modes.ENCODER, i, false);
-                               triggerList.Add(trigger);
+                               if(! playSoundsFromFile)
+                               {
+                                       Trigger trigger  = new Trigger(Trigger.Modes.ENCODER, i, false);
+                                       triggerList.Add(trigger);
+                               }
+
                                continue;
                        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]