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

Method updateSoundSources

Engine/source/T3D/shapeImage.cpp:1484–1501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1482}
1483
1484void ShapeBase::MountedImage::updateSoundSources( const MatrixF &renderTransform )
1485{
1486 // Update all the sounds removing any ones that have stopped.
1487 for ( U32 i=0; i < mSoundSources.size(); )
1488 {
1489 SFXSource *source = mSoundSources[i];
1490
1491 if ( source->isStopped() )
1492 {
1493 SFX_DELETE( source );
1494 mSoundSources.erase_fast( i );
1495 continue;
1496 }
1497
1498 source->setTransform(renderTransform);
1499 i++;
1500 }
1501}
1502
1503void ShapeBase::MountedImage::updateDoAnimateAllShapes(const ShapeBase* owner)
1504{

Callers 1

updateImageAnimationMethod · 0.80

Calls 4

erase_fastMethod · 0.80
sizeMethod · 0.45
isStoppedMethod · 0.45
setTransformMethod · 0.45

Tested by

no test coverage detected