From 8b1331142012ac83d35c0092b759e7f255ee9583 Mon Sep 17 00:00:00 2001 From: Tzim Date: Fri, 30 Jun 2017 14:20:53 +0200 Subject: [PATCH] =?UTF-8?q?Les=20tops=20identiques=20sont=20lanc=C3=A9s=20?= =?UTF-8?q?simultan=C3=A9ment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DMX-2.0/SequenceurMacro.cs | 4 +--- DMX-2.0/SequenceurMidi.cs | 4 +--- DMX-2.0/SequenceurOSC.cs | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/DMX-2.0/SequenceurMacro.cs b/DMX-2.0/SequenceurMacro.cs index 9e29526..4b13ff2 100644 --- a/DMX-2.0/SequenceurMacro.cs +++ b/DMX-2.0/SequenceurMacro.cs @@ -356,10 +356,8 @@ namespace DMX2 } } - if (topPresent) { - if (timeStamp > topSuivant) { + while (topPresent && (timeStamp >= topSuivant)) { LigneSuivante (); - } } } finally { Monitor.Exit (this); diff --git a/DMX-2.0/SequenceurMidi.cs b/DMX-2.0/SequenceurMidi.cs index a5ac1c8..1530ab2 100644 --- a/DMX-2.0/SequenceurMidi.cs +++ b/DMX-2.0/SequenceurMidi.cs @@ -208,10 +208,8 @@ namespace DMX2 if (Monitor.TryEnter (this)) { try { - if (topPresent) { - if (timeStamp > topSuivant) { + while (topPresent &&(timeStamp >= topSuivant)) { LigneSuivante (); - } } } finally { Monitor.Exit (this); diff --git a/DMX-2.0/SequenceurOSC.cs b/DMX-2.0/SequenceurOSC.cs index 5bf8ab6..243f6f5 100644 --- a/DMX-2.0/SequenceurOSC.cs +++ b/DMX-2.0/SequenceurOSC.cs @@ -208,10 +208,8 @@ namespace DMX2 if (Monitor.TryEnter (this)) { try { - if (topPresent) { - if (timeStamp > topSuivant) { + while (topPresent&&(timeStamp >= topSuivant)) { LigneSuivante (); - } } } finally { Monitor.Exit (this);