GUI: prevent resampling under 100Hz

This commit is contained in:
tildearrow 2025-08-19 04:15:20 -05:00
parent cfb47d8b06
commit 7d9df63a39
2 changed files with 9 additions and 4 deletions

View file

@ -1189,6 +1189,7 @@ bool DivSample::resampleSinc(double sRate, double tRate) {
bool DivSample::resample(double sRate, double tRate, int filter) {
if (depth!=DIV_SAMPLE_DEPTH_8BIT && depth!=DIV_SAMPLE_DEPTH_16BIT) return false;
if (tRate<100) return false;
switch (filter) {
case DIV_RESAMPLE_NONE:
return resampleNone(sRate,tRate);