fix inverse logic oops rochade 2.3.2+dfsg4-15
authormirabilos <tg@debian.org>
Sat, 5 Jun 2021 17:30:06 +0000 (19:30 +0200)
committermirabilos <mirabilos@evolvis.org>
Sat, 5 Jun 2021 17:30:06 +0000 (19:30 +0200)
debian/patches/experiments/valid-soundfont.diff

index 280aa80..a22fee0 100644 (file)
@@ -143,7 +143,7 @@ Forwarded: https://github.com/musescore/MuseScore/pull/7728
 +                        p->loopstart = p->loopend = p->start;
                          }
 -                  if ((p->end - p->start) < 8)
-+                  else if (p->loopstart < p->loopend) {
++                  else if (p->loopstart > p->loopend) {
 +                        unsigned int looptmp;
 +
 +                        qWarning("Sample(%s) swapping reversed loopstart<=>loopend",
@@ -235,7 +235,7 @@ Forwarded: https://github.com/musescore/MuseScore/pull/7728
 +            loopstart = loopend = start;
              }
 -      end = frames - 1;
-+      else if (loopstart < loopend) {
++      else if (loopstart > loopend) {
 +            unsigned int looptmp;
  
 -      if (loopend > end ||loopstart >= loopend || loopstart <= start) {