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.
This commit is contained in:
SteveDaulton 2021-06-21 00:55:40 +01:00 committed by Paul Licameli
parent 77dab158c3
commit fc0cdecbdb
1 changed files with 2 additions and 2 deletions

View File

@ -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))