[chronojump] PlaySound does not record triggers
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] PlaySound does not record triggers
- Date: Wed, 18 Apr 2018 20:14:11 +0000 (UTC)
commit 0aa921e7932eae98ec7988bd0eb544716fa223d4
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Apr 18 22:13:50 2018 +0200
PlaySound does not record triggers
src/encoderCapture.cs | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/encoderCapture.cs b/src/encoderCapture.cs
index 4e726d1..af56aa9 100644
--- a/src/encoderCapture.cs
+++ b/src/encoderCapture.cs
@@ -269,6 +269,12 @@ public abstract class EncoderCapture
//2 check if readed data is a trigger
if(byteReaded == TRIGGER_ON)
{
+ if(playSoundsFromFile)
+ {
+ Util.NextSongInList();
+ continue;
+ }
+
Trigger trigger = new Trigger(Trigger.Modes.ENCODER, i, true);
if(triggerList.IsSpurious(trigger))
{
@@ -276,9 +282,6 @@ public abstract class EncoderCapture
continue;
}
- if(playSoundsFromFile)
- Util.NextSongInList();
-
//TriggerTypes.START_AT_FIRST_ON starts capture at first trigger. So when
this happens, reset capture
if(cutByTriggers == Preferences.TriggerTypes.START_AT_FIRST_ON && !
firstTriggerHappened)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]