28 using MenuItem::MenuItem;
30 soundEditor.shouldGoUpOneLevelOnBegin =
true;
31 bool success = openUI(&audioRecorder);
33 if (getCurrentUI() == &soundEditor) {
34 soundEditor.goUpOneLevel();
36 uiTimerManager.unsetTimer(TimerName::SHORTCUT_BLINK);
39 audioRecorder.process();
43 Sound* sound =
static_cast<Sound*
>(modControllable);
44 Source* source = &sound->sources[whichThing];
45 return (sound->getSynthMode() == SynthMode::SUBTRACTIVE);
48 MenuPermission checkPermissionToBeginSession(
ModControllableAudio* modControllable, int32_t whichThing,
51 bool can =
isRelevant(modControllable, whichThing);
53 display->displayPopup(l10n::get(l10n::String::STRING_FOR_CANT_RECORD_AUDIO_FM_MODE));
54 return MenuPermission::NO;
57 Sound* sound =
static_cast<Sound*
>(modControllable);
59 return soundEditor.checkPermissionToBeginSessionForRangeSpecificParam(sound, whichThing, currentRange);