mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-29 23:29:41 +02:00
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:
parent
77dab158c3
commit
fc0cdecbdb
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user