MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / JumpToTimeMs

Method JumpToTimeMs

NetStream/source/players/player_fmod.cpp:273–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273bool FMODPlayer::JumpToTimeMs(uint32_t time)
274{
275 SCE_DBG_LOG_INFO("[JumpToTimeMs] Jump to seconds: %u\n", time / 1000);
276 uint32_t total = GetTotalTimeMs();
277 if (time >= total)
278 {
279 m_ch->stop();
280 return true;
281 }
282 return (m_ch->setPosition(time, FMOD_TIMEUNIT_MS) == FMOD_OK);
283}
284
285GenericPlayer::PlayerState FMODPlayer::GetState()
286{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected