载入中...
搜索中...
未找到
AudioEditorModule.cpp
浏览该文件的文档.
26 std::vector<std::string_view> types() const override { return {"audio-source", "audio-mixer", "audio-effects"}; }
28 editor::Result<editor::AutomationOwnedTarget> create(const editor::TargetId& target, std::string_view type,
100 auto sourceEditor = editor::addScriptClass<ScriptAudioSourceEditor>(table, "AudioSourceEditor");
102 editor::exposeWorkspacePresentation<ScriptAudioSourceEditor, AudioSourcePresentation>(sourceEditor,
111 return bind.checked(self, "audio source editor must not be null", [&] { return self->editor().seekX(x); });
117 sourceEditor.addFunc("setFloat", [bind](ScriptAudioSourceEditor* self, const std::string& path, float value) {
119 return self->editor().setProperty(path, audio_editing::EditorValue(static_cast<double>(value)));
122 sourceEditor.addFunc("setBool", [bind](ScriptAudioSourceEditor* self, const std::string& path, bool value) {
126 editor::registerEditorHistory<ScriptAudioSourceEditor>(sourceEditor, bind, "audio source editor must not be null");
128 return bind.checked(self, "audio source editor must not be null", [&] { return self->editor().play(); });
131 return bind.checked(self, "audio source editor must not be null", [&] { return self->editor().pause(); });
134 return bind.checked(self, "audio source editor must not be null", [&] { return self->editor().stop(); });
137 if (!self) return bind.fail(DiagnosticCode::InvalidArgument, "audio source editor must not be null");
145 sourceEditor.addFunc("isPlaying", [](ScriptAudioSourceEditor* self) { return self && self->editor().isPlaying(); });
179 if (const auto* integer = value.value.getIf<std::int64_t>()) return static_cast<float>(*integer);
Squirrel adapter for the audio source editor.
UI-neutral audio source editor: workspace, waveform, audition, undo.
std::unique_ptr< DeformMeshPresentation > presentation
Definition PhysicsBakeGraphics.cpp:71
const eve::script::BindingContractRegistry & registry
Definition ProjectIndexAutomatic.cpp:24
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:313
std::vector< std::string_view > types() const override
Stable target type names this factory accepts.
Definition AudioEditorModule.cpp:26
editor::Result< editor::AutomationOwnedTarget > create(const editor::TargetId &target, std::string_view type, const editor::EditorValue::Object &) override
Create a domain target from an automation request. @ownership Success transfers the target and any su...
Definition AudioEditorModule.cpp:28
Composition adapter that contributes audio editing commands, automation targets, and the script-owned...
Definition AudioEditorModule.h:21
Deterministic owning value tree shared by authoring hosts.
Definition EditingValue.h:23
Multi-provider extension point for domain-specific automation target creation.
Definition EditorAutomationTargetFactory.h:22
Editor facade binder: common script::BindContext plus history/owned-create helpers.
Definition EditorScriptProjection.h:135
AudioTransportState
Playback state exposed to audio and dialogue editor presenters.
Definition AudioTransport.h:14
editing::Result< void > registerEditingCommands(editing::IEditingCommandRegistry ®istry)
Register audio-owned planned commands with a generic editing host.
Definition AudioEditingCommands.cpp:37
Definition AudioEditorModule.cpp:22
void exposeAudioSourceEditorScriptBindings(ssq::Table &table, ssq::Class &moduleClass)
Expose the script-owned AudioSourceEditor factory on AudioEditorModule.
Definition AudioEditorModule.cpp:98
ssq::Table project(HSQUIRRELVM vm, const eve::Result< void > &result)
Project a completed editing result that has no payload.
Definition EditorScriptProjection.h:28
@ InvalidArgument
Definition Container.h:602
Target plus optional borrowed-dependency owner returned by an automation factory.
Definition EditorAutomationTargetFactory.h:15
std::unique_ptr< IEditableTarget > target
Definition EditorAutomationTargetFactory.h:18