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 ab597cc commit 28fa57dCopy full SHA for 28fa57d
source/modules/soul_patch_loader/classes/soul_patch_PlayerImpl.h
@@ -477,6 +477,9 @@ struct PatchPlayerImpl : public RefCountHelper<PatchPlayer>
477
478
EndpointProperties getEndpointProperties() const
479
{
480
+ if (config.sampleRate <= 0) throwPatchLoadError ("Illegal sample rate");
481
+ if (config.maxFramesPerBlock <= 0) throwPatchLoadError ("Illegal block size");
482
+
483
return { config.sampleRate, (uint32_t) config.maxFramesPerBlock };
484
}
485
0 commit comments