MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / Validate

Function Validate

src/command/audio.cpp:121–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 CMD_TYPE(COMMAND_VALIDATE)
120
121 bool Validate(const agi::Context *c) override {
122 return c->project->VideoProvider() && c->project->VideoProvider()->HasAudio();
123 }
124
125 void operator()(agi::Context *c) override {
126 c->project->LoadAudio(c->project->VideoName());

Callers

nothing calls this directly

Calls 3

VideoProviderMethod · 0.80
HasAudioMethod · 0.45
AudioProviderMethod · 0.45

Tested by

no test coverage detected