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

Method Play

src/video_controller.cpp:134–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void VideoController::Play() {
135 if (IsPlaying()) {
136 Stop();
137 return;
138 }
139
140 if (!provider) return;
141
142 start_ms = TimeAtFrame(frame_n);
143 end_frame = provider->GetFrameCount() - 1;
144
145 context->audioController->PlayToEnd(start_ms);
146
147 playback_start_time = std::chrono::steady_clock::now();
148 playback.Start(10);
149}
150
151void VideoController::PlayLine() {
152 Stop();

Callers

nothing calls this directly

Calls 2

PlayToEndMethod · 0.80
GetFrameCountMethod · 0.45

Tested by

no test coverage detected