[chronojump] PlaySounds ensures not using triggers
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] PlaySounds ensures not using triggers
- Date: Wed, 18 Apr 2018 21:34:31 +0000 (UTC)
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]