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

Class audio_stop

src/command/audio.cpp:246–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244};
245
246struct audio_stop final : public Command {
247 CMD_NAME("audio/stop")
248 CMD_ICON(button_stop)
249 STR_MENU("Stop playing")
250 STR_DISP("Stop playing")
251 STR_HELP("Stop audio and video playback")
252 CMD_TYPE(COMMAND_VALIDATE)
253
254 bool Validate(const agi::Context *c) override {
255 return c->audioController->IsPlaying();
256 }
257
258 void operator()(agi::Context *c) override {
259 c->audioController->Stop();
260 c->videoController->Stop();
261 }
262};
263
264struct audio_play_before final : public validate_audio_open {
265 CMD_NAME("audio/play/selection/before")

Callers

nothing calls this directly

Calls 1

IsPlayingMethod · 0.45

Tested by

no test coverage detected