From ebcb7801976ee039e66a8e436de80b397c23e6e0 Mon Sep 17 00:00:00 2001 From: SteveDaulton Date: Mon, 21 Jun 2021 00:55:40 +0100 Subject: [PATCH] Bug 2809 - Label Sounds fails when track sample rate is 22050 Hz Fix incorrect equality comparison between int and float and bump plug-in release number. --- plug-ins/label-sounds.ny | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plug-ins/label-sounds.ny b/plug-ins/label-sounds.ny index e00e76a70..842b57982 100644 --- a/plug-ins/label-sounds.ny +++ b/plug-ins/label-sounds.ny @@ -8,7 +8,7 @@ $debugbutton false ;; As this is a new plug-in (Jan2021), display errors if they occur. $debugflags trace $author (_ "Steve Daulton") -$release 3.0.0 +$release 3.0.2 $copyright (_ "Released under terms of the GNU General Public License version 2 or later.") ;; Released under terms of the GNU General Public License version 2 or later: @@ -153,7 +153,7 @@ $control text (_ "Label text") string "" (_ "Sound ##1") ((not val) snd-list) (cond ((< val threshold) - (when (and (= sil-count sil-dur)(>= snd-count snd-dur)) + (when (and (>= sil-count sil-dur)(>= snd-count snd-dur)) ;convert sample counts to seconds and push to list. (push (list (/ snd-start srate) (/ (- sample-count sil-count) srate))