MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / pause

Method pause

Engine/source/sfx/sfxVoice.cpp:225–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223//-----------------------------------------------------------------------------
224
225void SFXVoice::pause()
226{
227 while( mStatus != SFXStatusPaused &&
228 mStatus != SFXStatusNull &&
229 mStatus != SFXStatusStopped )
230 {
231 if( dCompareAndSwap( ( U32& ) mStatus, SFXStatusPlaying, SFXStatusTransition ) ||
232 dCompareAndSwap( ( U32& ) mStatus, SFXStatusBlocked, SFXStatusTransition ) )
233 {
234 _pause();
235 dCompareAndSwap( ( U32& ) mStatus, SFXStatusTransition, SFXStatusPaused );
236
237 break;
238 }
239 }
240}
241
242//-----------------------------------------------------------------------------
243

Callers 8

audio.csFile · 0.45
GuiMusicPlayerClassFunction · 0.45
audio.csFile · 0.45
GuiMusicPlayerClassFunction · 0.45
_pauseMethod · 0.45
_updateMethod · 0.45
_pauseMethod · 0.45
_onEndMethod · 0.45

Calls 1

dCompareAndSwapFunction · 0.50

Tested by

no test coverage detected