mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-27 15:50:10 +01:00
Limit selection length for Nyquist plug-ins
This can improve progress count for Nyquist effects that do not process all of selection (bug 558) and provides some protection against 2^31 overflow issues (bug 439).
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
;type analyze
|
||||
;name "Sample Data Export..."
|
||||
;action "Analyzing..."
|
||||
;maxlen 1000001
|
||||
;categories "http://lv2plug.in/ns/lv2core#AnalyserPlugin"
|
||||
;author "Steve Daulton"
|
||||
;copyright "Released under terms of the GNU General Public License version 2"
|
||||
@@ -90,7 +91,7 @@
|
||||
(if (< number 1)
|
||||
(add-error "No samples selected."))
|
||||
(if (> number 1000000)
|
||||
(add-error "Too many samples selected.\nSet limit to less than 1 million"))
|
||||
(add-error "Cannot export more than 1 million samples."))
|
||||
(setq number (truncate number)))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user