MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / begin

Method begin

game/ui/general/videoscreen.cpp:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void VideoScreen::begin()
48{
49 last_frame_time = std::chrono::high_resolution_clock::now();
50 if (this->video)
51 {
52 this->current_frame = this->video->popImage();
53
54 fw().soundBackend->setTrack(video->getMusicTrack());
55 fw().soundBackend->playMusic([](void *) {}, nullptr);
56 }
57}
58
59void VideoScreen::pause() {}
60

Callers

nothing calls this directly

Calls 4

popImageMethod · 0.80
getMusicTrackMethod · 0.80
setTrackMethod · 0.45
playMusicMethod · 0.45

Tested by

no test coverage detected