예제 #1
0
    void SetReverb(int slotNum, std::string name, float ratio) {
        if (slotNum < 0 or slotNum >= N_REVERB_SLOTS or std::isnan(ratio)) {
            return;
        }

        UpdateReverbSlot(slotNum, std::move(name), ratio);
    }
예제 #2
0
 void StopTest() const {
     testingReverb = false;
     for (int i = 0; i < N_REVERB_SLOTS; i++) {
         std::string name = std::move(reverbSlots[i].name);
         UpdateReverbSlot(i, std::move(name), reverbSlots[i].askedRatio);
     }
 }