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

Method PlayToEnd

src/audio_controller.cpp:160–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void AudioController::PlayToEnd(int start_ms)
161{
162 if (!player) return;
163
164 int64_t start_sample = SamplesFromMilliseconds(start_ms);
165 player->Play(start_sample, provider->GetNumSamples()-start_sample);
166 playback_mode = PM_ToEnd;
167 playback_timer.Start(20);
168
169 AnnouncePlaybackPosition(start_ms);
170}
171
172void AudioController::Stop()
173{

Callers 2

PlayMethod · 0.80
operator()Function · 0.80

Calls 2

GetNumSamplesMethod · 0.80
PlayMethod · 0.45

Tested by

no test coverage detected