Fix a clang-tidy problem
This commit is contained in:
parent
9648d159a9
commit
6ff6acad71
1 changed files with 2 additions and 5 deletions
|
|
@ -800,11 +800,8 @@ int Synth::getNumActiveVoices() const noexcept
|
||||||
int activeVoices = static_cast<int>(impl.voiceManager_.getNumActiveVoices());
|
int activeVoices = static_cast<int>(impl.voiceManager_.getNumActiveVoices());
|
||||||
|
|
||||||
// do not count overflow voices which are over limit
|
// do not count overflow voices which are over limit
|
||||||
int resultVoices = activeVoices;
|
return (config::overflowVoiceMultiplier > 1) ?
|
||||||
if (config::overflowVoiceMultiplier > 1)
|
std::min(impl.numVoices_, activeVoices) : activeVoices;
|
||||||
resultVoices = std::min(impl.numVoices_, activeVoices);
|
|
||||||
|
|
||||||
return resultVoices;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Synth::setSamplesPerBlock(int samplesPerBlock) noexcept
|
void Synth::setSamplesPerBlock(int samplesPerBlock) noexcept
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue