We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a4c8a commit f8a2823Copy full SHA for f8a2823
Source/PluginProcessor.cpp
@@ -1584,7 +1584,7 @@ void PluginProcessor::runBackupLoop()
1584
// Only run backup timer if GUI is visible
1585
if(!getActiveEditor()) return;
1586
1587
- int blocksToProcess = backupRunLoopInterval / (int)((DEFDACBLKSIZE / AudioProcessor::getSampleRate()) * 1000.0);
+ int blocksToProcess = backupRunLoopInterval / std::max(1, (int)((DEFDACBLKSIZE / AudioProcessor::getSampleRate()) * 1000.0));
1588
if(blocksToProcess < 1)
1589
{
1590
blocksToProcess = jmax(1, blocksToProcess); // At least 1 block
0 commit comments