16 using Selection::Selection;
18 void readCurrentValue()
override { this->setValue(soundEditor.currentSampleControls->interpolationMode); }
21 void writeCurrentValue()
override {
22 auto current_value = this->getValue<InterpolationMode>();
25 if (currentUIMode == UI_MODE_HOLDING_AFFECT_ENTIRE_IN_SOUND_EDITOR && soundEditor.editingKitRow()) {
27 Kit* kit = getCurrentKit();
29 for (
Drum* thisDrum = kit->firstDrum; thisDrum !=
nullptr; thisDrum = thisDrum->next) {
30 if (thisDrum->type == DrumType::SOUND) {
31 auto* soundDrum =
static_cast<SoundDrum*
>(thisDrum);
33 soundDrum->sources[soundEditor.currentSourceIndex].sampleControls.interpolationMode = current_value;
39 soundEditor.currentSampleControls->interpolationMode = current_value;
43 deluge::vector<std::string_view> getOptions(OptType optType)
override {
45 return {l10n::getView(l10n::String::STRING_FOR_LINEAR), l10n::getView(l10n::String::STRING_FOR_SINC)};