This commit is contained in:
igor725 2024-05-23 00:12:57 +03:00
parent 27812a7faf
commit 24514ad30e
No known key found for this signature in database
GPG Key ID: 46F13BBE46F8569D

View File

@ -252,6 +252,10 @@ struct SceNgs2Handle_system: public SceNgs2Handle {
if (alloc_ != nullptr) alloc = *alloc_;
outSampleRate = sysopt ? sysopt->sampleRate : 48000;
outNumSamples = sysopt ? sysopt->numGrainSamples : 256;
// Handle zero-cases
outSampleRate = outSampleRate > 0 ? outSampleRate : 48000;
outNumSamples = outNumSamples > 0 ? outNumSamples : 256;
}
virtual ~SceNgs2Handle_system() = default;