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

Method GetState

NetStream/source/players/player_fmod.cpp:285–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285GenericPlayer::PlayerState FMODPlayer::GetState()
286{
287 bool play = false;
288 bool pause = false;
289
290 m_ch->isPlaying(&play);
291 if (play)
292 {
293 return PlayerState_Play;
294 }
295
296 m_ch->getPaused(&pause);
297 if (pause)
298 {
299 return PlayerState_Pause;
300 }
301
302 return PlayerState_Eof;
303}
304
305void FMODPlayer::SetPowerSaving(bool enable)
306{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected