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

Method stop

Engine/source/sfx/sfxVoice.cpp:244–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242//-----------------------------------------------------------------------------
243
244void SFXVoice::stop()
245{
246 while( mStatus != SFXStatusStopped &&
247 mStatus != SFXStatusNull )
248 {
249 if( dCompareAndSwap( ( U32& ) mStatus, ( U32 ) SFXStatusPlaying, ( U32 ) SFXStatusTransition ) ||
250 dCompareAndSwap( ( U32& ) mStatus, SFXStatusPaused, SFXStatusTransition ) ||
251 dCompareAndSwap( ( U32& ) mStatus, SFXStatusBlocked, SFXStatusTransition ) )
252 {
253 _stop();
254 dCompareAndSwap( ( U32& ) mStatus, SFXStatusTransition, SFXStatusStopped );
255
256 break;
257 }
258 }
259}
260
261//-----------------------------------------------------------------------------
262

Callers 15

_execInsnMethod · 0.45
_stopMethod · 0.45
_updateMethod · 0.45
_resetStreamMethod · 0.45
_stopMethod · 0.45
_onEndMethod · 0.45
_releaseAllResourcesMethod · 0.45
deleteDeviceMethod · 0.45
stopAndDeleteSourceMethod · 0.45
sfxSystem.cppFile · 0.45
updateMethod · 0.45
updateMethod · 0.45

Calls 1

dCompareAndSwapFunction · 0.50

Tested by

no test coverage detected