MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _status

Method _status

Engine/source/sfx/null/sfxNullVoice.cpp:38–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38SFXStatus SFXNullVoice::_status() const
39{
40 if( !mIsLooping
41 && mPlayTimer.isStarted()
42 && !mPlayTimer.isPaused()
43 && mPlayTimer.getPosition() >= mBuffer->getDuration() )
44 mPlayTimer.stop();
45
46 if( mPlayTimer.isPaused() )
47 return SFXStatusPaused;
48 else if( mPlayTimer.isStarted() )
49 return SFXStatusPlaying;
50 else
51 return SFXStatusStopped;
52}
53
54void SFXNullVoice::_play()
55{

Callers

nothing calls this directly

Calls 5

isStartedMethod · 0.80
isPausedMethod · 0.45
getPositionMethod · 0.45
getDurationMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected