Replace stable_sort by sort
This commit is contained in:
parent
cc9832507f
commit
07f30af7f1
1 changed files with 2 additions and 2 deletions
|
|
@ -33,13 +33,13 @@ sfz::Voice* sfz::VoiceStealing::stealFirst(absl::Span<Voice*> voices) noexcept
|
|||
|
||||
sfz::Voice* sfz::VoiceStealing::stealOldest(absl::Span<Voice*> voices) noexcept
|
||||
{
|
||||
absl::c_stable_sort(voices, voiceOrdering);
|
||||
absl::c_sort(voices, voiceOrdering);
|
||||
return voices.front();
|
||||
}
|
||||
|
||||
sfz::Voice* sfz::VoiceStealing::stealEnvelopeAndAge(absl::Span<Voice*> voices) noexcept
|
||||
{
|
||||
absl::c_stable_sort(voices, voiceOrdering);
|
||||
absl::c_sort(voices, voiceOrdering);
|
||||
|
||||
const auto sumPower = absl::c_accumulate(voices, 0.0f, [](float sum, const Voice* v) {
|
||||
return sum + v->getAveragePower();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue